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
$ scala-2.12.1/bin/scala
Welcome to Scala2.12.1 (JavaHotSpot(TM) 64-BitServerVM, Java1.8.0_102).
Type in expressions for evaluation. Ortry:help.
scala>:paste
// Entering paste mode (ctrl-D to finish)importscala.language.higherKindscaseclassConst[A, B](value: A)
traitFoo[F[_], A]
caseclassBar[F[_]]() extendsFoo[F, Unit]
deff[F[_], A](foo: Foo[F, A]):Unit= foo match {
caseBar() =>Const[Unit, F[Unit]](()).value
}
// Exiting paste mode, now interpreting.
<console>:19:error: F does not take typeparameterscaseBar() =>Const[Unit, F[Unit]](()).value
^
scala>
The text was updated successfully, but these errors were encountered:
The following used to work in 2.11.8:
The text was updated successfully, but these errors were encountered: