Open
Description
Compiler version
latest nightly and prior.
Problem
In order to create new symbols, we must use Symbol api, when augmenting a class in an annotation macro, there's no way to add new members to its symbol because there's no right way to copy the original attributes, for instance flags are missing, there's no direct primary constructor (maybe this is supposed to be a decl method with flags). Ironically, the newModule
method does allow you to pass the flags for the class.