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
This code should only create one accessor for x, but it ends up creating three:
x
object Foo { private[this] val x: Int = 1 inline def foo: Int = x + x + x }
final lazy module val Foo: Foo$ = new Foo$() final module class Foo$() extends Object() { this: Foo.type => private[this] val x: Int = 1 @Foo.foo$_inlineAccessor_$1.+(Foo.foo$_inlineAccessor_$2).+( Foo.foo$_inlineAccessor_$3 ) inline def foo: Int = Foo.foo$_inlineAccessor_$1.+(Foo.foo$_inlineAccessor_$2).+( Foo.foo$_inlineAccessor_$3 ) def foo$_inlineAccessor_$1: Int = Foo.x def foo$_inlineAccessor_$2: Int = Foo.x def foo$_inlineAccessor_$3: Int = Foo.x }
The text was updated successfully, but these errors were encountered:
Fix scala#4322: Avoid generating multiple inline accessors for the sa…
719729a
…me access
Fix scala#4322: Avoid generating more than one definition for an inli…
bae5449
…ne accessor
2a5abb3
Merge pull request #4468 from dotty-staging/fix-#4322
4258d8e
Fix #4322: Avoid generating multiple inline accessors for the same ac…
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
This code should only create one accessor for
x
, but it ends up creating three:The text was updated successfully, but these errors were encountered: