forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of AppliedType aliases in outerPrefix (scala#20190)
Fixes scala#20184 The overlooked case was an AppliedType where we don't dealias correctly (i.e. at phase at most erasure).
- Loading branch information
Showing
2 changed files
with
17 additions
and
18 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,12 @@ | ||
object Outer: | ||
def Test = | ||
object Inner: | ||
var x: Int = 2 | ||
class Rgb(): | ||
def f = x | ||
|
||
type Id[X] = X | ||
type TRgb = Id[Inner.Rgb] | ||
|
||
val ok = new Inner.Rgb() | ||
val crash = new Id[Inner.Rgb] |