diff options
Diffstat (limited to 'test/files/neg/abstract-class-2.scala')
-rw-r--r-- | test/files/neg/abstract-class-2.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/neg/abstract-class-2.scala b/test/files/neg/abstract-class-2.scala new file mode 100644 index 0000000000..19f74f3da6 --- /dev/null +++ b/test/files/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 + } +} |