summaryrefslogblamecommitdiff
path: root/test/files/neg/macro-invalidsig-params-badtype.check
blob: 3cc1c9abf14468db6e74e68f2ee9dbdbf9a81c32 (plain) (tree)
1
2
3
4
5
6
7

                                                                         

                                                                  
                                   
       
               
Impls_Macros_1.scala:8: error: macro implementation has wrong shape:
 required: (c: scala.reflect.macros.Context)(x: c.Expr[Int]): c.Expr[Any]
 found   : (c: scala.reflect.macros.Context)(x: Int): Nothing
type mismatch for parameter x: c.Expr[Int] does not conform to Int
  def foo(x: Int) = macro Impls.foo
      ^
one error found