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
I'm not sure if this type of thing is really meant to be supported, but I keep trying to skip the step of creating companion interfaces for objects now that objects have denotable types.
sharedinterfaceSelf<Other> ofOthergivenOthersatisfiesSelf<Other> {}
sharedobjectselfObjectsatisfiesSelf<\IselfObject> {}
sharedvoidtakesSelf<S>(Sarg) givenSsatisfiesSelf<S> {}
sharedvoidcallTakesSelf() {
takesSelf(selfObject);
// Inferred type argument Basic&Self<selfObject> to// type parameter S of declaration takesSelf is// not assignable to upper bound// Self<Basic&Self<selfObject>> of S
}
The text was updated successfully, but these errors were encountered:
I'm not sure if this type of thing is really meant to be supported, but I keep trying to skip the step of creating companion
interface
s forobject
s now thatobject
s have denotable types.The text was updated successfully, but these errors were encountered: