summaryrefslogtreecommitdiff
path: root/test/files/neg/names-defaults-neg.check
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-02-09 09:30:54 +0000
committerPaul Phillips <paulp@improving.org>2011-02-09 09:30:54 +0000
commit6d19219483b7cc42fa34af49654108fa5cb975fe (patch)
tree181e103dea02ae2910c7d7ce27a0c68777339027 /test/files/neg/names-defaults-neg.check
parent07a44adf6fa098712b4046dd56e98817bad201ee (diff)
downloadscala-6d19219483b7cc42fa34af49654108fa5cb975fe.tar.gz
scala-6d19219483b7cc42fa34af49654108fa5cb975fe.tar.bz2
scala-6d19219483b7cc42fa34af49654108fa5cb975fe.zip
Some cleanup from investigating #4041, with a c...
Some cleanup from investigating #4041, with a comment instead of a fix for the ticket. Review by rytz in case he sees a good way to fix it.
Diffstat (limited to 'test/files/neg/names-defaults-neg.check')
-rw-r--r--test/files/neg/names-defaults-neg.check12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/files/neg/names-defaults-neg.check b/test/files/neg/names-defaults-neg.check
index 3b3dd53b2e..5d409f18a8 100644
--- a/test/files/neg/names-defaults-neg.check
+++ b/test/files/neg/names-defaults-neg.check
@@ -131,26 +131,26 @@ names-defaults-neg.scala:135: error: parameter specified twice: a
names-defaults-neg.scala:136: error: wrong number of parameters; expected = 2
val taf4: (Int, String) => Unit = testAnnFun(_, b = _)
^
-names-defaults-neg.scala:144: error: variable definition needs type because the name is used as named argument the definition.
+names-defaults-neg.scala:144: error: variable definition needs type because 'x' is used as a named argument in its body.
def t3 { var x = t.f(x = 1) }
^
-names-defaults-neg.scala:147: error: variable definition needs type because the name is used as named argument the definition.
+names-defaults-neg.scala:147: error: variable definition needs type because 'x' is used as a named argument in its body.
object t6 { var x = t.f(x = 1) }
^
-names-defaults-neg.scala:150: error: variable definition needs type because the name is used as named argument the definition.
+names-defaults-neg.scala:150: error: variable definition needs type because 'x' is used as a named argument in its body.
class t9 { var x = t.f(x = 1) }
^
-names-defaults-neg.scala:164: error: variable definition needs type because the name is used as named argument the definition.
+names-defaults-neg.scala:164: error: variable definition needs type because 'x' is used as a named argument in its body.
def u3 { var x = u.f(x = 1) }
^
-names-defaults-neg.scala:167: error: variable definition needs type because the name is used as named argument the definition.
+names-defaults-neg.scala:167: error: variable definition needs type because 'x' is used as a named argument in its body.
def u6 { var x = u.f(x = "32") }
^
names-defaults-neg.scala:170: error: reference to x is ambiguous; it is both, a parameter
name of the method and the name of a variable currently in scope.
def u9 { var x: Int = u.f(x = 1) }
^
-names-defaults-neg.scala:177: error: variable definition needs type because the name is used as named argument the definition.
+names-defaults-neg.scala:177: error: variable definition needs type because 'x' is used as a named argument in its body.
class u15 { var x = u.f(x = 1) }
^
names-defaults-neg.scala:180: error: reference to x is ambiguous; it is both, a parameter