Hi All,

Groovy 2.3.7.

I've been experimenting with trying to add a Trait (or Mixin) to a
ClassNode during semantic analysis (compiler phase).  I've tried using
ClassNode::addInterface and ClassNode::addMixin passing the appropriate.  I
sort of expected ClassNode to have an addTrait or something like.

Is setting a trait at this phase of compilation supported?

JR

Reply via email to