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
importgroovy.transform.*import staticorg.codehaus.groovy.control.CompilePhase.*import staticorg.codehaus.groovy.transform.stc.StaticTypesMarker.*@CompileStaticclassC {
voidm() {
def that =this;
{ ->@ASTTest(phase=INSTRUCTION_SELECTION, value={
deftype= node.getNodeMetaData(INFERRED_TYPE)
assert type.name=='C'
})
def ref = getThisObject()
assert ref == that
}()
}
}
new C().m()
The @ASTTest is marked with an error indicating that a closure literal should be supplied for the "value" member. However one is given, so the error is unexpected. Also, syntax highlighting seems to be missing for the "value" name and value.
The text was updated successfully, but these errors were encountered:
Consider the following:
The
@ASTTest
is marked with an error indicating that a closure literal should be supplied for the "value" member. However one is given, so the error is unexpected. Also, syntax highlighting seems to be missing for the "value" name and value.The text was updated successfully, but these errors were encountered: