We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Given:
class Wrapper(val value: Int) abstract class Foo(val x: Int) class Test { def foo(wrapper: Wrapper): Unit = { new Foo(wrapper.value) {} } }
Dotty generates:
private static final class Test$$anon$1 extends Foo { private final Wrapper wrapper$1; public Test$$anon$1(Wrapper wrapper$2) { this.wrapper$1 = wrapper$2; super(wrapper$2.value()); } }
But Scala 2.12 does:
public final class Test$$anon$1 extends Foo { public Test$$anon$1(Test $outer, Wrapper wrapper$1) { super(wrapper$1.value()); } }
This is similar to #2869
The text was updated successfully, but these errors were encountered:
Avoid memory leak in TypedSplice
016c5d7
beb2e41
No branches or pull requests
Given:
Dotty generates:
But Scala 2.12 does:
This is similar to #2869
The text was updated successfully, but these errors were encountered: