-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Labels
Description
Protocols which contain generic functions can not be generated because the generic type can not be determined.
ex, this function:
`func getObjects<T: RealmSwift.Object>(_ objects: T.Type) -> Results<T>?`
Will generate as:
var invokedGetObjects = false
var invokedGetObjectsCount = 0
var invokedGetObjectsParameters: (objects: T.Type, Void)?
var invokedGetObjectsParametersList = [(objects: T.Type, Void)]()
var stubbedGetObjectsResult: Results<T>!
func getObjects<T: RealmSwift.Object>(_ objects: T.Type) -> Results<T>? {
invokedGetObjects = true
invokedGetObjectsCount += 1
invokedGetObjectsParameters = (objects, ())
invokedGetObjectsParametersList.append((objects, ()))
return stubbedGetObjectsResult
}
Where type 'T' is undeclared.
Reactions are currently unavailable