I tried to implement the Scala macro annotations example as described in the documentation. I managed to compile the macro annotations before the actual project which uses them, i.e., the @compileTimeOnly("enable macro paradise to expand macro annotations")
does not get triggered meaning that the macro annotation is compiled before its usage. So far so good.
However, when I annotate certain values in my actual project as follows:
@identity val foo: Double = 1.1
@identity val bar: String = "bar"
then I expect the following print to happen when running the main project (by the macro annotation example linked before):
(<empty>,List(val foo: Double = 1.1))
(<empty>,List(val bar: String = "bar"))
This is where I get confused, the print does not happen when I run the main project. It does however, appear for a split second when compiling the main project as a warning?
(I'm using the IntelliJ IDEA and Scala 2.12.8)