summaryrefslogtreecommitdiff
path: root/test/files/neg/t3772.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t3772.scala')
-rw-r--r--test/files/neg/t3772.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/neg/t3772.scala b/test/files/neg/t3772.scala
new file mode 100644
index 0000000000..cac4932d4a
--- /dev/null
+++ b/test/files/neg/t3772.scala
@@ -0,0 +1,17 @@
+class Test {
+ def m = {
+ case class CC(c: Int)
+ if ("".isEmpty) {
+ object CC { def inner = 42}
+ }
+ CC.inner
+ }
+ def n = {
+ object CC { val outer = 42 }
+ if ("".isEmpty) {
+ case class CC(c: Int)
+ CC(0).c
+ CC.outer
+ }
+ }
+}