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
Value class with method signature dependent on constructor parameter = crash #6651
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6651?orig=1 |
@xeno-by said: |
@retronym said (edited on Nov 11, 2012 11:25:28 PM UTC):
One for another day... |
@retronym said: class YouAreYourself[A <: AnyRef](val you: A) extends AnyVal {
def yourself: you.type = you
} |
@retronym said: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gives:
By contrast, this compiles:
Although even in the second case, the signature appears incorrect:
The formal type of the parameter
dep
should have a substitution applied fromValueClass.this.type
->$this.type
.The text was updated successfully, but these errors were encountered: