summaryrefslogtreecommitdiff
path: root/test/files/neg/t8700a/Bar.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t8700a/Bar.scala')
-rw-r--r--test/files/neg/t8700a/Bar.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/neg/t8700a/Bar.scala b/test/files/neg/t8700a/Bar.scala
new file mode 100644
index 0000000000..33ad8e9877
--- /dev/null
+++ b/test/files/neg/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
+ }
+}