diff options
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/t0606.check | 4 | ||||
-rw-r--r-- | test/files/neg/t0606.scala | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t0606.check b/test/files/neg/t0606.check new file mode 100644 index 0000000000..fb83fca744 --- /dev/null +++ b/test/files/neg/t0606.check @@ -0,0 +1,4 @@ +t0606.scala:5: error: private value db escapes its defining scope as part of type Foo.this.db.Info + val info = new db.Info + ^ +one error found diff --git a/test/files/neg/t0606.scala b/test/files/neg/t0606.scala new file mode 100644 index 0000000000..e76ea810e5 --- /dev/null +++ b/test/files/neg/t0606.scala @@ -0,0 +1,6 @@ +class Database { + class Info +} +class Foo(db : Database) { + val info = new db.Info +} |