diff options
Diffstat (limited to 'tests/untried/neg/abstract-class-2.scala')
-rw-r--r-- | tests/untried/neg/abstract-class-2.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/untried/neg/abstract-class-2.scala b/tests/untried/neg/abstract-class-2.scala new file mode 100644 index 000000000..19f74f3da --- /dev/null +++ b/tests/untried/neg/abstract-class-2.scala @@ -0,0 +1,14 @@ +class P { + trait S1 + val p = new P + + trait S2 { + def f(x: p.S1): Int + } +} + +class P2 extends P { + object O2 extends S2 { + def f(x: S1) = 5 + } +} |