diff options
Diffstat (limited to 'test/files/neg/t414.check')
-rw-r--r-- | test/files/neg/t414.check | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/neg/t414.check b/test/files/neg/t414.check new file mode 100644 index 0000000000..a855497648 --- /dev/null +++ b/test/files/neg/t414.check @@ -0,0 +1,12 @@ +t414.scala:5: error: pattern type is incompatible with expected type; + found : object Empty + required: IntMap[a] +Note: if you intended to match against the class, try `case _: Empty[_]` or `case Empty()` + case Empty => + ^ +t414.scala:7: error: type mismatch; + found : Unit + required: a + case _ => + ^ +two errors found |