aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t5878.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t5878.check')
-rw-r--r--tests/untried/neg/t5878.check13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/untried/neg/t5878.check b/tests/untried/neg/t5878.check
new file mode 100644
index 000000000..c60c4653a
--- /dev/null
+++ b/tests/untried/neg/t5878.check
@@ -0,0 +1,13 @@
+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 wrap another user-defined value class
+case class Bar(x: Foo) extends AnyVal
+ ^
+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 wrap another user-defined value class
+class Bar1(val x: Foo1) extends AnyVal
+ ^
+four errors found