summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-invalidsig-params-namemismatch.check
blob: 82612a94d3ffff7443e39231abd302f2e16978b9 (plain) (blame)
1
2
3
4
5
6
7
Impls_Macros_1.scala:8: error: macro implementation has incompatible shape:
 required: (c: scala.reflect.macros.Context)(x: c.Expr[Int], y: c.Expr[Int]): c.Expr[Any]
 found   : (c: scala.reflect.macros.Context)(y: c.Expr[Int], x: c.Expr[Int]): Nothing
parameter names differ: x != y
  def foo(x: Int, y: Int) = macro Impls.foo
                                        ^
one error found