diff options
Diffstat (limited to 'tests/untried/pos/virtpatmat_binding_opt.scala')
-rw-r--r-- | tests/untried/pos/virtpatmat_binding_opt.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/untried/pos/virtpatmat_binding_opt.scala b/tests/untried/pos/virtpatmat_binding_opt.scala new file mode 100644 index 000000000..8ec931fe7 --- /dev/null +++ b/tests/untried/pos/virtpatmat_binding_opt.scala @@ -0,0 +1,11 @@ +class Test { + def combine = this match { + case that if that eq this => this // just return this + case that: Test2 => + println(that) + this + case _ => sys.error("meh") + } +} + +class Test2 extends Test |