Groovy Closure not recognized

any thoughts on why closure (->) not getting recognized?
image

@ssridharan

myClosure { TYPE arg ->
  // code
}

myOtherClosure { ->
  // code
}
1 Like

A post was split to a new topic: Asserting Nested JSON

Yes, closure works. I just had to surround in {} wherever closure is used. Thanks