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?
to your account
class TwoParamSpecializedWithDefault[@specialized A, @specialized B](a: A, b: B = (??? : B))
error: double definition:
method <init>$default$2$mVc$sp:()Unit and
method <init>$default$2$mVc$sp:()Unit at line 1
have same type
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-7329?orig=1
Affected Versions: 2.10.1
Sorry, something went wrong.
Looking at this example makes me wonder if it ever makes sense to have default getter for a constructor parameter specialized. The fact that default getter is run before the instance is created strengthens this thought.
Successfully merging a pull request may close this issue.