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> object TypeParam { sealed trait F[A]; case object FI extends F[Int]; case object FS extends F[String]; trait FFn { def apply[A](f: F[A]): A }; val test4: FFn = { case FI => 1; case FS => "" } }
2
+
1 | object TypeParam { sealed trait F[A]; case object FI extends F[Int]; case object FS extends F[String]; trait FFn { def apply[A](f: F[A]): A }; val test4: FFn = { case FI => 1; case FS => "" } }
3
+
| ^
4
+
|missing parameter type
5
+
|
6
+
|The argument types of an anonymous function must be fully known. (SLS 8.5)
7
+
|Expected type: TypeParam.FFn
8
+
|Missing type for parameter x$1 of expanded function:
0 commit comments