You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importorg.codehaus.groovy.ast.ClassNodeimport staticjava.lang.reflect.Modifier.*import staticorg.codehaus.groovy.ast.ClassHelper.makeimport staticorg.codehaus.groovy.ast.tools.GeneralUtils.*voidtest(ClassNodenode, Stringbasename) {
def field = node.addField(basename +'suffix',
FINAL | PRIVATE,
make(Date),
ctorX(make(Date))
)
}
Type inferencing errors out at "ctorX(make(Date))" because it picks ClassHelper.make(Class[]): ClassNode[] and this prevents matching on GeneralUtils.ctorX(ClassNode).
The text was updated successfully, but these errors were encountered:
Consider the following:
Type inferencing errors out at "ctorX(make(Date))" because it picks
ClassHelper.make(Class[]): ClassNode[]
and this prevents matching onGeneralUtils.ctorX(ClassNode)
.The text was updated successfully, but these errors were encountered: