You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During development I have encountered a problem with mocking the objects with generic metatype like:
func example<T>(with typeParam: T.Type)
After mocking an object with function like the one above, the resulting generated Mock fails the build with error Swift Compiler Error (in Mock.generated.swift): Use of undeclared type ‘T’
I would like to ask if the issue is known for you and if there is solution for the problem?
The text was updated successfully, but these errors were encountered:
szymonll
changed the title
Mocking objects with Type.self as a method parameter
Mocking objects with generic metatype as a method parameter
Jan 10, 2018
During development I have encountered a problem with mocking the objects with generic metatype like:
func example<T>(with typeParam: T.Type)
After mocking an object with function like the one above, the resulting generated Mock fails the build with error
Swift Compiler Error (in Mock.generated.swift): Use of undeclared type ‘T’
I would like to ask if the issue is known for you and if there is solution for the problem?
The text was updated successfully, but these errors were encountered: