summaryrefslogtreecommitdiff
path: root/test/files/pos/compound.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/compound.scala')
-rw-r--r--test/files/pos/compound.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/compound.scala b/test/files/pos/compound.scala
new file mode 100644
index 0000000000..60890f9102
--- /dev/null
+++ b/test/files/pos/compound.scala
@@ -0,0 +1,9 @@
+abstract class A { type T }
+
+abstract class B { val xz: Any }
+
+abstract class Test {
+ var yy: A with B { type T; val xz: T } = null;
+ var xx: A with B { type T; val xz: T } = null;
+ xx = yy;
+}