diff options
Diffstat (limited to 'tests/untried/pos/t684.scala')
-rw-r--r-- | tests/untried/pos/t684.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/pos/t684.scala b/tests/untried/pos/t684.scala new file mode 100644 index 000000000..fb5cac3a1 --- /dev/null +++ b/tests/untried/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)); +} |