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
error typed tree leaves the typer phase unreported after failed implicit view application: NPE in MixinTransformer #8583
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8583?orig=1 |
@retronym said: qbin/scalac -Xprint:typer sandbox/test.scala [[syntax trees at end of typer]] // test.scala
package <empty> {
class Test extends scala.AnyRef {
def <init>(): Test = {
Test.super.<init>();
()
};
abstract trait A extends scala.AnyRef {
def *(o: Test.this.A): Test.this.A
};
implicit def doubleToA(d: Double): Test.this.A = scala.this.Predef.???;
implicit def listToA(in: List[Test.this.A]): Test.this.A = scala.this.Predef.???;
def as: List[Test.this.A] = scala.this.Predef.???;
private[this] val result: Test.this.A = Test.this.listToA(Test.this.as.map[Nothing, List[Nothing]](((x: Test.this.A) => 2.0.<$times: error>(x)))(immutable.this.List.canBuildFrom[Nothing]));
<stable> <accessor> def result: Test.this.A = Test.this.result
}
} |
@retronym said: |
Martin Großmann (mgrossmann) said: |
I have tested this bug in the 2.13.x version, and it has already been fixed. I have also tested it in the
The same error is still present on the milestone version |
Compiling the following code:
Stacktrace:
The text was updated successfully, but these errors were encountered: