aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/value-class-override-spec.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/value-class-override-spec.scala')
-rw-r--r--tests/untried/pos/value-class-override-spec.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/untried/pos/value-class-override-spec.scala b/tests/untried/pos/value-class-override-spec.scala
new file mode 100644
index 000000000..79de5d930
--- /dev/null
+++ b/tests/untried/pos/value-class-override-spec.scala
@@ -0,0 +1,9 @@
+// There are two versions of this tests: one with and one without specialization.
+// The bug was only exposed *without* specialization.
+trait T extends Any {
+ def x: Any
+}
+
+final class StringOps(val repr0: String) extends AnyVal with T {
+ def x = ()
+}