summaryrefslogtreecommitdiff
path: root/test/files/neg/t5878.check
diff options
context:
space:
mode:
authorJosh Suereth <Joshua.Suereth@gmail.com>2012-08-03 21:14:20 -0700
committerJosh Suereth <Joshua.Suereth@gmail.com>2012-08-03 21:14:20 -0700
commit233b0ebe05beb32382e49bc9f3ffc76c8785b626 (patch)
treec500e384dc4811c60c1c857bdc31de1f36ca4f27 /test/files/neg/t5878.check
parent8a2df611d2390caa4c2e1b56433408654dfc9d9a (diff)
parent4b0f6d9ccc9023635ce6297839138fa68a5ebc33 (diff)
downloadscala-233b0ebe05beb32382e49bc9f3ffc76c8785b626.tar.gz
scala-233b0ebe05beb32382e49bc9f3ffc76c8785b626.tar.bz2
scala-233b0ebe05beb32382e49bc9f3ffc76c8785b626.zip
Merge pull request #1042 from paulp/merge-2.10.x
Merge 2.10.x
Diffstat (limited to 'test/files/neg/t5878.check')
-rw-r--r--test/files/neg/t5878.check13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/t5878.check b/test/files/neg/t5878.check
new file mode 100644
index 0000000000..50dba0d272
--- /dev/null
+++ b/test/files/neg/t5878.check
@@ -0,0 +1,13 @@
+t5878.scala:1: error: value class may not unbox to itself
+case class Foo(x: Bar) extends AnyVal
+ ^
+t5878.scala:2: error: value class may not unbox to itself
+case class Bar(x: Foo) extends AnyVal
+ ^
+t5878.scala:4: error: value class may not unbox to itself
+class Foo1(val x: Bar1) extends AnyVal
+ ^
+t5878.scala:5: error: value class may not unbox to itself
+class Bar1(val x: Foo1) extends AnyVal
+ ^
+four errors found