summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-invalidsig-implicit-params.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-08-08 05:29:43 -0700
committerPaul Phillips <paulp@improving.org>2012-08-08 09:43:29 -0700
commit802771b403f6dd0f09e01e4e3e1189c70d4b7bec (patch)
treeabf4ddbc39c1bafc2b042748c6be4de18bee85a7 /test/files/neg/macro-invalidsig-implicit-params.check
parent7d3b2de7b52fec492bc63296d5adf076f68faf0a (diff)
downloadscala-802771b403f6dd0f09e01e4e3e1189c70d4b7bec.tar.gz
scala-802771b403f6dd0f09e01e4e3e1189c70d4b7bec.tar.bz2
scala-802771b403f6dd0f09e01e4e3e1189c70d4b7bec.zip
Better pattern matcher error message.
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
Diffstat (limited to 'test/files/neg/macro-invalidsig-implicit-params.check')
-rw-r--r--test/files/neg/macro-invalidsig-implicit-params.check8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/neg/macro-invalidsig-implicit-params.check b/test/files/neg/macro-invalidsig-implicit-params.check
index 029b8a4634..98b3167b7a 100644
--- a/test/files/neg/macro-invalidsig-implicit-params.check
+++ b/test/files/neg/macro-invalidsig-implicit-params.check
@@ -1,4 +1,4 @@
-Impls_Macros_1.scala:5: error: macro implementations cannot have implicit parameters other than AbsTypeTag evidences
- def foo_targs[T, U: c.AbsTypeTag](c: Ctx)(implicit x: c.Expr[Int]) = {
- ^
-one error found
+Impls_Macros_1.scala:5: error: macro implementations cannot have implicit parameters other than AbsTypeTag evidences
+ def foo_targs[T, U: c.AbsTypeTag](c: Ctx)(implicit x: c.Expr[Int]) = {
+ ^
+one error found