diff options
Diffstat (limited to 'test/files/neg/S2.check')
-rw-r--r-- | test/files/neg/S2.check | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/S2.check b/test/files/neg/S2.check new file mode 100644 index 0000000000..cb6bb9c991 --- /dev/null +++ b/test/files/neg/S2.check @@ -0,0 +1,7 @@ +S2.scala:14: type z.type escapes its defining scope as part of z.Inner + def x = { val z = new S2(); new z.Inner(); } + ^ +S2.scala:15: type z.type escapes its defining scope as part of z.Inner + def y = { val z = new S2(); new z.Inner(); } + ^ +two errors found |