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
The following snippet results in compilation error with scala 2.11.x (full stacktrace in attachment). Note that only two patterns together (with extractor first) in match clause brings error.
traitTest {
traitTwo[A, B]
typeOne[A] =Two[A, A]
objectExtract {
defunapply(o: One[_]):Option[_] =???
}
defmatcher[T](o: One[T]) = o match {
caseExtract(t) =>???// extractor alone is okcase_: One[_] =>???// other pattern in conjunction with extractor causes errorcase _ =>???// wildcard pattern is also ok
}
}
Scala version 2.10.4 compiles fine. This seems to be a regression introduced in 2.11.0 and affected subsequent versions.
The text was updated successfully, but these errors were encountered:
The following snippet results in compilation error with scala 2.11.x (full stacktrace in attachment). Note that only two patterns together (with extractor first) in match clause brings error.
Scala version 2.10.4 compiles fine. This seems to be a regression introduced in 2.11.0 and affected subsequent versions.
The text was updated successfully, but these errors were encountered: