diff options
Diffstat (limited to 'tests/pos/t3174.scala')
-rw-r--r-- | tests/pos/t3174.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/pos/t3174.scala b/tests/pos/t3174.scala new file mode 100644 index 000000000..bae941bc1 --- /dev/null +++ b/tests/pos/t3174.scala @@ -0,0 +1,16 @@ +object test { + def method(): Unit = { + class Foo extends AnyRef { + object Color { + object Blue { + //val b = new Board + } + } + + class Board { + val grid = Color.Blue + } + } + new Foo + } + } |