summaryrefslogtreecommitdiff
path: root/test/files/neg/newpat_unreachable.check
Commit message (Collapse)AuthorAgeFilesLines
* SI-6120 multiple warnings at same position.Paul Phillips2013-09-271-1/+7
| | | | | An error suppresses all further warnings at the same position, but multiple warnings can be heard.
* Merge branch '2.10.x'Adriaan Moors2012-08-141-8/+10
| | | | | | | Conflicts: src/compiler/scala/tools/nsc/Global.scala src/compiler/scala/tools/nsc/typechecker/Typers.scala test/files/neg/t6048.check
* Better pattern matcher error message.Paul Phillips2012-08-081-0/+27
For the common case when someone hasn't quite grokked the significance of lower case in a pattern match. I'd like to make all the unreachables errors, not warnings, but there may be a bug or two to clear out first. class A { def badEquals(x: Any, y: Any) = x match { case y => true case _ => false } } a.scala:3: warning: patterns after a variable pattern cannot match (SLS 8.1.1) If you intended to match against parameter y of method badEquals, you must use backticks, like: case `y` => case y => true ^ a.scala:4: warning: unreachable code due to variable pattern 'y' on line 3 case _ => false ^ two warnings found