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
Master
With -Ysafe-init:
-Ysafe-init
class TestSuite: protected val it = new ItWord protected final class ItWord: def should(string: String) = new ItVerbString("should", string) private def registerTestToRun(fun: => Any): Unit = () protected final class ItVerbString(verb: String, name: String): inline def in(testFun: => Any): Unit = registerTestToRun(testFun) class MyTest extends TestSuite: it should "not cause outer select errors" in { assert(1 + 1 == 2) } val n = 10
unexpected outerSelect, thisV = Warm(class ItVerbString,ThisRef(class MyTest),method <init>,List(Hot, Hot)), target = class MyTest, hops = 1
The code should compile without issue. This is blocked by #15374 . It should work once #15374 is fixed.
The text was updated successfully, but these errors were encountered:
Need to revert 73b3331 once this issue is fixed.
Sorry, something went wrong.
Fix scala#15465: Add test
dc7778c
Fix scala#15465: Use resolveThis for outer this resolution
b274576
Merge pull request #15606 from dotty-staging/fix-15465
ae83f76
Fix #15465: Use resolveThis for outerSelect resolution
liufengyun
Successfully merging a pull request may close this issue.
Compiler version
Master
Minimized code
With
-Ysafe-init
:Output
Expectation
The code should compile without issue. This is blocked by #15374 . It should work once #15374 is fixed.
The text was updated successfully, but these errors were encountered: