aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t0599.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t0599.scala')
-rw-r--r--tests/untried/pos/t0599.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/untried/pos/t0599.scala b/tests/untried/pos/t0599.scala
new file mode 100644
index 000000000..885159af6
--- /dev/null
+++ b/tests/untried/pos/t0599.scala
@@ -0,0 +1,18 @@
+abstract class FooA {
+ type A <: Ax;
+ abstract class Ax;
+ abstract class InnerA {
+ type B <: A;
+ def doB : B;
+ }
+ }
+ trait FooB extends FooA {
+ type A <: Ax;
+ trait Ax extends super.Ax { def xxx : Int; }
+ abstract class InnerB extends InnerA {
+ // type B <: A;
+ val a : A = doB;
+ a.xxx;
+ doB.xxx;
+ }
+ }