-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15606 from dotty-staging/fix-15465
Fix #15465: Use resolveThis for outerSelect resolution
- Loading branch information
Showing
2 changed files
with
25 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
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 |