diff options
Diffstat (limited to 'tests/patmat/t8700a/Bar.scala')
-rw-r--r-- | tests/patmat/t8700a/Bar.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/patmat/t8700a/Bar.scala b/tests/patmat/t8700a/Bar.scala new file mode 100644 index 000000000..33ad8e987 --- /dev/null +++ b/tests/patmat/t8700a/Bar.scala @@ -0,0 +1,9 @@ +object Bar { + def bar1(foo: Foo) = foo match { + case Foo.A => 1 + } + + def bar2(foo: Baz) = foo match { + case Baz.A => 1 + } +} |