aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorliu fengyun <liufengyunchina@gmail.com>2016-11-07 23:57:06 +0100
committerliu fengyun <liu@fengy.me>2016-11-24 13:36:05 +0100
commitabb9aa802789e6b43ff07c45281eedbb09512585 (patch)
treef0c74d053602dd64f0489780726ee9ef9a5fe4c2 /tests/pos
parent8592af1c815c34078d89c08536addbe757550179 (diff)
downloaddotty-abb9aa802789e6b43ff07c45281eedbb09512585.tar.gz
dotty-abb9aa802789e6b43ff07c45281eedbb09512585.tar.bz2
dotty-abb9aa802789e6b43ff07c45281eedbb09512585.zip
fix #1642: disallow value classe wrapping value class
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/i1642.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/pos/i1642.scala b/tests/pos/i1642.scala
new file mode 100644
index 000000000..2fe67cf18
--- /dev/null
+++ b/tests/pos/i1642.scala
@@ -0,0 +1,2 @@
+class Test1(val x: Int) extends AnyVal
+class Test2(val y: Test1) extends AnyVal