summaryrefslogtreecommitdiff
path: root/test/files/neg/macro-invalidimpl-e.check
blob: 5cfcf856258b1cf5bdff4ca7430a72fedb58bdce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
Macros_Test_2.scala:2: error: ambiguous reference to overloaded definition,
both method foo in object Impls of type (c: scala.reflect.macros.Context)(x: c.Expr[Any], y: c.Expr[Any])Nothing
and  method foo in object Impls of type (c: scala.reflect.macros.Context)(x: c.Expr[Any])Nothing
match expected type ?
  def foo(x: Any) = macro Impls.foo
                                ^
Macros_Test_2.scala:3: error: ambiguous reference to overloaded definition,
both method foo in object Impls of type (c: scala.reflect.macros.Context)(x: c.Expr[Any], y: c.Expr[Any])Nothing
and  method foo in object Impls of type (c: scala.reflect.macros.Context)(x: c.Expr[Any])Nothing
match expected type ?
  def foo(x: Any, y: Any) = macro Impls.foo
                                        ^
two errors found