summaryrefslogtreecommitdiff
path: root/test/files/neg/t5878.check
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2012-09-16 20:55:44 +0200
committerMartin Odersky <odersky@gmail.com>2012-09-17 16:28:09 +0200
commitc30a9bddc49592fef6d054cd0ce4e7ec2c035f71 (patch)
tree21f8401798184c34be4239cd6ce4f6dc6fa142c0 /test/files/neg/t5878.check
parent61c83d2903f1c68c943ea646e75b4ca32d75f991 (diff)
downloadscala-c30a9bddc49592fef6d054cd0ce4e7ec2c035f71.tar.gz
scala-c30a9bddc49592fef6d054cd0ce4e7ec2c035f71.tar.bz2
scala-c30a9bddc49592fef6d054cd0ce4e7ec2c035f71.zip
Fixes SI-6337 by disallowing nested value classes.
It seems for the moment too hard to allow this, and the functionality to have value classes wrap other value classes does not seem essential.
Diffstat (limited to 'test/files/neg/t5878.check')
-rw-r--r--test/files/neg/t5878.check16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/files/neg/t5878.check b/test/files/neg/t5878.check
index 50dba0d272..c60c4653a2 100644
--- a/test/files/neg/t5878.check
+++ b/test/files/neg/t5878.check
@@ -1,13 +1,13 @@
-t5878.scala:1: error: value class may not unbox to itself
+t5878.scala:1: error: value class may not wrap another user-defined value class
case class Foo(x: Bar) extends AnyVal
- ^
-t5878.scala:2: error: value class may not unbox to itself
+ ^
+t5878.scala:2: error: value class may not wrap another user-defined value class
case class Bar(x: Foo) extends AnyVal
- ^
-t5878.scala:4: error: value class may not unbox to itself
+ ^
+t5878.scala:4: error: value class may not wrap another user-defined value class
class Foo1(val x: Bar1) extends AnyVal
- ^
-t5878.scala:5: error: value class may not unbox to itself
+ ^
+t5878.scala:5: error: value class may not wrap another user-defined value class
class Bar1(val x: Foo1) extends AnyVal
- ^
+ ^
four errors found