summaryrefslogtreecommitdiff
path: root/test/files/neg/t6359.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2012-09-13 23:53:24 +0200
committerJason Zaugg <jzaugg@gmail.com>2012-09-14 00:04:59 +0200
commit41dfb1612126c3b5763da25f4c3bdd73d605f12b (patch)
tree60e2ad8109bbe6b51a7d967f8d40f06e51ee53ce /test/files/neg/t6359.check
parentea651e6fe187920d207aa5fe3c645d294e72e627 (diff)
downloadscala-41dfb1612126c3b5763da25f4c3bdd73d605f12b.tar.gz
scala-41dfb1612126c3b5763da25f4c3bdd73d605f12b.tar.bz2
scala-41dfb1612126c3b5763da25f4c3bdd73d605f12b.zip
SI-6359 Deep prohibition of templates in value class
This seems to have been the intent of 95d532 / SI-5882.
Diffstat (limited to 'test/files/neg/t6359.check')
-rw-r--r--test/files/neg/t6359.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t6359.check b/test/files/neg/t6359.check
new file mode 100644
index 0000000000..2aa1ac5035
--- /dev/null
+++ b/test/files/neg/t6359.check
@@ -0,0 +1,7 @@
+t6359.scala:3: error: value class may not have nested module definitions
+ object X
+ ^
+t6359.scala:4: error: value class may not have nested class definitions
+ class Y
+ ^
+two errors found