Postpone implicit resolution until macro expansion

前端 未结 0 1017
一整个雨季
一整个雨季 2020-12-13 12:10

Consider trivial macro:

def test[A](a: A): Unit = macro testImpl[A]

def testImpl[A: c.WeakTypeTag](c: blackbox.Context)(a: c.Expr[A]): c.Expr[Unit] = {
  imp         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题