启用宏天堂扩展宏注释 [英] enable macro paradise to expand macro annotations
问题描述
我想在 macro Heaven
中检查一些带有注释的示例,但出现错误,如:这个例子
I wanted to check some examples with annotations in macro paradise
and I am getting the error, as is specified in: this example
我已经关联了项目,其他 scala 宏(不带注释)运行良好.我已经包含了库 paradise_2.11.6-2.1.0-M5
(在两个项目中也包括 :( ).我想,我不明白 *to enable*
. !? bthw, 我在 Eclipse 中使用 Scala IDE.
I have related the projects, the other scala macros (not with annotations) are working very well. I have included the library paradise_2.11.6-2.1.0-M5
(in both projects also :( ). I think, I do not get what means with *to enable*
. !? bthw, I am using Scala IDE in Eclipse.
推荐答案
通过启用,我的意思是将其添加为编译器插件,例如在 https://github.com/scalamacrossbt-example-paradise/blob/17f4a0d421ad7002334c7081d3ec79cc9edb4f24/project/Build.scala#L14
By enable, I meant adding it as a compiler plugin, as e.g. in https://github.com/scalamacros/sbt-example-paradise/blob/17f4a0d421ad7002334c7081d3ec79cc9edb4f24/project/Build.scala#L14
这篇关于启用宏天堂扩展宏注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!