diff options
Diffstat (limited to 'test/files/pos/t684.scala')
-rw-r--r-- | test/files/pos/t684.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t684.scala b/test/files/pos/t684.scala new file mode 100644 index 0000000000..fb5cac3a1a --- /dev/null +++ b/test/files/pos/t684.scala @@ -0,0 +1,11 @@ +package test; +trait Test { + trait Ti; + class Foo; + def foo(t : Ti) = t match { + case t : Foo => true; + case _ => false; + } + class Bar extends Foo with Ti; + assert(foo(new Bar)); +} |