diff options
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/bug1041.check | 6 | ||||
-rw-r--r-- | test/files/neg/bug1041.scala | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/files/neg/bug1041.check b/test/files/neg/bug1041.check new file mode 100644 index 0000000000..0b9d6223b7 --- /dev/null +++ b/test/files/neg/bug1041.check @@ -0,0 +1,6 @@ +bug1041.scala:3: error: type mismatch; + found : scala.Int(1) + required: scala.List[scala.Int] + case 1 => 4 + ^ +one error found diff --git a/test/files/neg/bug1041.scala b/test/files/neg/bug1041.scala new file mode 100644 index 0000000000..a5895c68a9 --- /dev/null +++ b/test/files/neg/bug1041.scala @@ -0,0 +1,6 @@ +object test { + (1 :: 2 :: Nil) match { + case 1 => 4 + case _ => 0 + } +} |