We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class A[+T] { protected[this] def f(t: T) { } } class B extends A[Any] { f() }
Doesn't work if compiled together: covariant type T occurs in contravariant position in type T of value t. Works if call to f in B is omitted.
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-465?orig=1 Reporter: @ingoem
Sorry, something went wrong.
@paulp said: This appears to have been fixed - the sample compiles without complaint.
Mohsen Lesani [X] (lesani) said: It works with 2.7.2.
@odersky said: Milestone next_bugfix deleted
odersky
No branches or pull requests
Doesn't work if compiled together: covariant type T occurs in contravariant position in type T of value t. Works if call to f in B is omitted.
The text was updated successfully, but these errors were encountered: