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
Since updating to the latest version, I am getting build errors in GeneratedMocks due to type accessibility that wasn't an issue before.
For example
I have the following public class
public class client {
internal var delegates: [ClientDelegate]
}
class [ClientDelegate] {
}
However, cuckoo is trying to make the delegates var public:
public override var delegates: [ClientDelegate] {
get {
return cuckoo_manager.getter("delegates",
superclassCall:
super.delegates
,
defaultCall: __defaultImplStub!.delegates)
}
set {
cuckoo_manager.setter("delegates",
value: newValue,
superclassCall:
super.delegates = newValue
,
defaultCall: __defaultImplStub!.delegates = newValue)
}
}
We do not want to make ClientDelegate a public class (this is a framework we are building) and we need the var to be internal so its value can easily be queried by tests.
I see in the release notes this seems to be deliberate behaviour. Why is cuckoo making an internal var public? is there a workaround for this. I can't downgrade as i require generics support at this point
The text was updated successfully, but these errors were encountered:
Hey, I just tested that issue again because of which I implemented this accessibility inheritance, but it works even without the inheritance. I'm not sure if I failed to test it properly before, but I'll revert the accessibility inheriting and add your use case to the tests so that we avoid this bug in the future.
Since updating to the latest version, I am getting build errors in GeneratedMocks due to type accessibility that wasn't an issue before.
For example
I have the following public class
However, cuckoo is trying to make the
delegates
var public:We do not want to make
ClientDelegate
a public class (this is a framework we are building) and we need the var to be internal so its value can easily be queried by tests.I see in the release notes this seems to be deliberate behaviour. Why is cuckoo making an internal var public? is there a workaround for this. I can't downgrade as i require generics support at this point
The text was updated successfully, but these errors were encountered: