summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-11-14 12:22:22 -0800
committerAdriaan Moors <adriaan.moors@epfl.ch>2012-11-19 10:35:13 -0800
commit8b54ec9f4ee8c5a0ab00f4b6ffd35c5c9913afd6 (patch)
tree8366b1206302cc46967282a15be2452fec26253b /test
parent6cb08a1aabd915bbf3562c03d1b89af617eed81d (diff)
downloadscala-8b54ec9f4ee8c5a0ab00f4b6ffd35c5c9913afd6.tar.gz
scala-8b54ec9f4ee8c5a0ab00f4b6ffd35c5c9913afd6.tar.bz2
scala-8b54ec9f4ee8c5a0ab00f4b6ffd35c5c9913afd6.zip
Fix for SI-6357, cycle with value classes.
Don't force the owner info.
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/t6357.check4
-rw-r--r--test/files/neg/t6357.scala6
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t6357.check b/test/files/neg/t6357.check
new file mode 100644
index 0000000000..a534d1439a
--- /dev/null
+++ b/test/files/neg/t6357.check
@@ -0,0 +1,4 @@
+t6357.scala:3: error: value class may not be a local class
+ final class Y(val j: Int) extends AnyVal
+ ^
+one error found
diff --git a/test/files/neg/t6357.scala b/test/files/neg/t6357.scala
new file mode 100644
index 0000000000..47f5629638
--- /dev/null
+++ b/test/files/neg/t6357.scala
@@ -0,0 +1,6 @@
+object K {
+ def q = {
+ final class Y(val j: Int) extends AnyVal
+ 3
+ }
+}