-
Notifications
You must be signed in to change notification settings - Fork 21
regression in implicit search after changes to stabilty/volatility in subtyping #8301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8301?orig=1 |
@retronym said: |
@retronym said (edited on Feb 17, 2014 9:27:42 PM UTC):
|
@xeno-by said:
// cf. pos/t8300-patmat.scala
trait Universe {
type Name >: Null <: AnyRef with NameApi
trait NameApi
type TermName >: Null <: TermNameApi with Name
trait TermNameApi extends NameApi
}
object Test extends App {
val u: Universe = ???
import u._
locally {
val ScalaName: TermName = ???
??? match {
case ScalaName => ???
}
}
} t8300-patmat.scala:17: error: stable identifier required, but ScalaName found.
Note that value ScalaName is not stable because its type, Test.u.TermName, is volatile.
case ScalaName => ???
^
one error found |
@retronym said: |
@adriaanm said: |
The text was updated successfully, but these errors were encountered: