summaryrefslogtreecommitdiff
path: root/test/files/pos/t7377/Client_2.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t7377/Client_2.scala')
-rw-r--r--test/files/pos/t7377/Client_2.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/pos/t7377/Client_2.scala b/test/files/pos/t7377/Client_2.scala
new file mode 100644
index 0000000000..5728956cca
--- /dev/null
+++ b/test/files/pos/t7377/Client_2.scala
@@ -0,0 +1,11 @@
+object Test {
+ M.noop(List(1) match { case Nil => 0; case (x::xs) => x })
+
+ case class Foo(a: Int)
+ val FooAlias: Foo.type = Foo
+ M.noop(Foo(0) match { case FooAlias(_) => 0 })
+
+ case class Bar()
+ val BarAlias: Bar.type = Bar
+ M.noop(Bar() match { case BarAlias() => 0 })
+}