Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
odersky committed Apr 15, 2024
1 parent 6841c75 commit ab4b12c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/pos/i20184.scala
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]

0 comments on commit ab4b12c

Please sign in to comment.