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
This almost has to be a duplicate of something, but I can't find it and it's bad, so opening until I or someone finds the duplicate. This compiles with 2.9.2.
objectTest {
caseclassCC[T](key: T)
typeAlias[T] =Seq[CC[T]]
deff(xs: Seq[CC[_]]) = xs map { caseCC(x) =>CC(x) } // okdefg(xs: Alias[_]) = xs map { caseCC(x) =>CC(x) } // fails// ./a.scala:11: error: missing parameter type for expanded function// The argument types of an anonymous function must be fully known. (SLS 8.5)// Expected type was: ?// def g(xs: Alias[_]) = xs map { case CC(x) => CC(x) } // fails// ^// one error found
}
The text was updated successfully, but these errors were encountered:
This almost has to be a duplicate of something, but I can't find it and it's bad, so opening until I or someone finds the duplicate. This compiles with 2.9.2.
The text was updated successfully, but these errors were encountered: