summaryrefslogtreecommitdiff
path: root/test-nsc/files/pos/compound.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test-nsc/files/pos/compound.scala')
-rwxr-xr-xtest-nsc/files/pos/compound.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test-nsc/files/pos/compound.scala b/test-nsc/files/pos/compound.scala
new file mode 100755
index 0000000000..60890f9102
--- /dev/null
+++ b/test-nsc/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;
+}