Closed bupojung closed 5 months ago
Seems to me like the problem is in Cuckoo not copying your typealias but still using just the aliased type.
I don't know if this is the case, but try to manually add the typealias into the mocked type to see if that's the reason. You need to disable mock generation to prevent it being overwritten for this test.
Another way to test this theory is to not use the typealias and instead the whole type.
Seems to me like the problem is in Cuckoo not copying your typealias but still using just the aliased type.
I don't know if this is the case, but try to manually add the typealias into the mocked type to see if that's the reason. You need to disable mock generation to prevent it being overwritten for this test.
Another way to test this theory is to not use the typealias and instead the whole type.
I use whole type instead resolve the error. thanks
I'll reopen the issue if you don't mind, this is merely a workaround that shouldn't be necessary. This must be fixed on Cuckoo side.
Fixed in 2.0.4 where typealiases are copied over to the mock.
this is the protocol
generated code is:
and this code encounter two errors: