We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.0.2-RC1
object Test: var cnt = 0 trait Foo: lazy val foo1 = {cnt+=1; cnt} @scala.annotation.targetName("fooTwo") lazy val foo2 = {cnt+=1; cnt} object Bar extends Foo def main(sa: Array[String]): Unit = println(Bar.foo1) // Prints 1 println(Bar.foo1) // Prints 1 println(Bar.foo1) // Prints 1 println(Bar.foo1) // Prints 1 println(Bar.foo2) // Prints 2 println(Bar.foo2) // Prints 3 EXPECTED 2 println(Bar.foo2) // Prints 4 EXPECTED 2 println(Bar.foo2) // Prints 5 EXPECTED 2
This issue might be related to 13252
The text was updated successfully, but these errors were encountered:
Add regression test for scala#13358
ea9047a
Fixes scala#13358
Looks like this is fixed in master
Sorry, something went wrong.
Merge pull request #13592 from dotty-staging/fix-13358
aaac006
Add regression test for #13358
088d43e
odersky
Successfully merging a pull request may close this issue.
Compiler version
3.0.2-RC1
Minimized code
This issue might be related to 13252
The text was updated successfully, but these errors were encountered: