阅读背景:

编译器使用在whitebox宏内生成的case类的结构类型

来源:互联网 

The following macro generates a case class Person and returns an instance of this class. It uses whitebox macros so the compiler can infer the type Person. This allows the macro client to call p.name even though this field was generated inside the macro.The following macro generates a case class Pers




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: