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
Scala gives errors if you try to use this in combination with parameterised types:
this
scala> class A { val me: this.type = this } defined class A scala> class B { val maybeMe: Option[this.type] = Some(this) } <console>:5: error: type mismatch; found : Some[B] required: Option[B.this.type] val maybeMe: Option[this.type] = Some(this) ^
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-1554?orig=1 Reporter: @rickynils
Sorry, something went wrong.
Geoffrey Alan Washburn (washburn) said: This is a duplicate of #837.
No branches or pull requests
Scala gives errors if you try to use
this
in combination with parameterised types:The text was updated successfully, but these errors were encountered: