diff options
Diffstat (limited to 'tests/run/t4897.scala')
-rw-r--r-- | tests/run/t4897.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/run/t4897.scala b/tests/run/t4897.scala new file mode 100644 index 000000000..f65c2745e --- /dev/null +++ b/tests/run/t4897.scala @@ -0,0 +1,10 @@ +class CSuper { + object A +} +class C extends CSuper { + def f = (A: AnyRef) match { case _: A.type => "joepie" } +} + +object Test extends C with App { + println(f) +} |