diff options
Diffstat (limited to 'test/files/pos/virtpatmat_binding_opt.scala')
-rw-r--r-- | test/files/pos/virtpatmat_binding_opt.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/virtpatmat_binding_opt.scala b/test/files/pos/virtpatmat_binding_opt.scala new file mode 100644 index 0000000000..962e3d7dbe --- /dev/null +++ b/test/files/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 _ => error("meh") + } +} + +class Test2 extends Test
\ No newline at end of file |