From c30a9bddc49592fef6d054cd0ce4e7ec2c035f71 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 16 Sep 2012 20:55:44 +0200 Subject: 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. --- test/files/neg/t6337.check | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/files/neg/t6337.check (limited to 'test/files/neg/t6337.check') diff --git a/test/files/neg/t6337.check b/test/files/neg/t6337.check new file mode 100644 index 0000000000..8448f71320 --- /dev/null +++ b/test/files/neg/t6337.check @@ -0,0 +1,7 @@ +t6337.scala:10: error: value class may not wrap another user-defined value class +class X[T](val i: XX[T]) extends AnyVal + ^ +t6337.scala:20: error: value class may not wrap another user-defined value class +class X1[T](val i: XX1[T]) extends AnyVal + ^ +two errors found -- cgit v1.2.3