aboutsummaryrefslogtreecommitdiff
path: root/tests/new/t0039.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/t0039.scala')
-rw-r--r--tests/new/t0039.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/new/t0039.scala b/tests/new/t0039.scala
new file mode 100644
index 000000000..652c606b0
--- /dev/null
+++ b/tests/new/t0039.scala
@@ -0,0 +1,6 @@
+abstract class Extensible[A, This <: Extensible[A, This]](x: A, xs: This) { self: This =>
+ def mkObj(x: A, xs: This): This;
+}
+class Fixed[A](x: A, xs: Fixed[A]) extends Extensible[A, Fixed[A]](x, xs) {
+ def mkObj(x: A, xs: Fixed[A]) = new Fixed(x, xs);
+}