summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-invalidshape.check
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2015-07-13 10:42:58 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2015-07-13 10:42:58 -0700
commit216e09b3ead43039f2e34a135820ef098c3be74e (patch)
treec312a233cf3e2cf0c7ddcd679d1437a32dc819ae /test/files/neg/macro-invalidshape.check
parent9df8f8ae9e36cf1c04929b7b0d2bdfb6fd2f360f (diff)
parent18e3e61778918e4e802b8fb75789635409523372 (diff)
downloadscala-216e09b3ead43039f2e34a135820ef098c3be74e.tar.gz
scala-216e09b3ead43039f2e34a135820ef098c3be74e.tar.bz2
scala-216e09b3ead43039f2e34a135820ef098c3be74e.zip
Merge pull request #4622 from retronym/merge/2.11.x-to-2.12.x-20150713
Merge 2.11.x to 2.12.x [ci: last-only]
Diffstat (limited to 'test/files/neg/macro-invalidshape.check')
-rw-r--r--test/files/neg/macro-invalidshape.check5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/files/neg/macro-invalidshape.check b/test/files/neg/macro-invalidshape.check
index aa694df6d6..5093b87598 100644
--- a/test/files/neg/macro-invalidshape.check
+++ b/test/files/neg/macro-invalidshape.check
@@ -8,8 +8,9 @@ macro [<static object>].<method name>[[<type args>]] or
macro [<macro bundle>].<method name>[[<type args>]]
def foo2(x: Any) = macro Impls.foo(null)(null)
^
-Macros_Test_2.scala:4: error: missing arguments for method foo in object Impls;
-follow this method with `_' if you want to treat it as a partially applied function
+Macros_Test_2.scala:4: error: missing argument list for method foo in object Impls
+Unapplied methods are only converted to functions when a function type is expected.
+You can make this conversion explicit by writing `foo _` or `foo(_)(_)` instead of `foo`.
def foo3(x: Any) = macro {2; Impls.foo}
^
Macros_Test_2.scala:7: error: macro implementation reference has wrong shape. required: