diff options
Diffstat (limited to 'test/pos/compound.scala')
-rw-r--r-- | test/pos/compound.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/pos/compound.scala b/test/pos/compound.scala new file mode 100644 index 0000000000..60890f9102 --- /dev/null +++ b/test/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; +} |