diff options
author | Paul Phillips <paulp@improving.org> | 2011-08-07 04:38:42 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-08-07 04:38:42 +0000 |
commit | 6fe5754cec7f389477e5aa29ef527916d5d615d0 (patch) | |
tree | a50c8d472582656d346e7a422c4599d8a04b2a68 /test/files/neg/bug4879.check | |
parent | 2b31bc81adfe6470e7da4546a4858482e8a5b61f (diff) | |
download | scala-6fe5754cec7f389477e5aa29ef527916d5d615d0.tar.gz scala-6fe5754cec7f389477e5aa29ef527916d5d615d0.tar.bz2 scala-6fe5754cec7f389477e5aa29ef527916d5d615d0.zip |
Better error message for case class/object matc...
Better error message for case class/object match confusion. Closes
SI-4879, no review.
Diffstat (limited to 'test/files/neg/bug4879.check')
-rw-r--r-- | test/files/neg/bug4879.check | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/bug4879.check b/test/files/neg/bug4879.check new file mode 100644 index 0000000000..6b9e452109 --- /dev/null +++ b/test/files/neg/bug4879.check @@ -0,0 +1,13 @@ +bug4879.scala:6: error: pattern type is incompatible with expected type; + found : object C + required: C +Note: if you intended to match against the class, try `case _: C` or `case C(_)` + case C => true + ^ +bug4879.scala:10: error: pattern type is incompatible with expected type; + found : object D + required: D[T,U,V] +Note: if you intended to match against the class, try `case _: D[_,_,_]` or `case D(_,_,_)` + case D => true + ^ +two errors found |