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
opaquetypeFinally[A] =AtraitSomeTrait[F[_]] {
deffoo:F[Unit]
defwithTV[A]:F[A]
defwithTV2[A, B]:F[(A, B)]
}
givennone:SomeTrait[Finally] with {
// the compiler generates stub
}
Output
stub implementation, which is in suggestedStub
givensuggestedStub:SomeTrait[Finally] with {
/** As seen from module class none$, the missing signatures are as follows. * For convenience, these are usable as stub implementations.*/deffoo:F[Unit] =???defwithTV: [A] =>F[A] =???defwithTV2: [A, B] =>F[(A, B)] =???
}
Expectation
the code which is in expected
givenexpected:SomeTrait[Finally] with {
// all: the SomeTrait's F should be expanded with `Finally`deffoo:Finally[Unit] =???// samedefwithTV[A]:Finally[A] =???// the type-variable declaration must be followed by identifierdefwithTV2[A, B]:Finally[(A, B)] =???// same as withTV
}
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.0.2
Minimized code
Output
stub implementation, which is in
suggestedStub
Expectation
the code which is in
expected
The text was updated successfully, but these errors were encountered: