diff options
Diffstat (limited to 'tests/untried/pos/value-class-override-spec.scala')
-rw-r--r-- | tests/untried/pos/value-class-override-spec.scala | 9 |
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 = () +} |