diff options
Diffstat (limited to 'test/files/neg/t8002-nested-scope.scala')
-rw-r--r-- | test/files/neg/t8002-nested-scope.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/neg/t8002-nested-scope.scala b/test/files/neg/t8002-nested-scope.scala new file mode 100644 index 0000000000..44704a12b1 --- /dev/null +++ b/test/files/neg/t8002-nested-scope.scala @@ -0,0 +1,12 @@ +class C { + def foo = { + class C { private def x = 0 } + + { + val a = 0 + object C { + new C().x + } + } + } +} |