Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.1
Description
def with(@DelegatesTo.Target Object target, @DelegatesTo(strategy = Closure.DELEGATE_FIRST) Closure... arg) { for (Closure a : arg) { a.delegate = target a.resolveStrategy = Closure.DELEGATE_FIRST a() } } @CompileStatic def test() { with(a:2) { print(get('a')) //false positive error } { print(get('a')) //false positive error } } test()
Attachments
Issue Links
- relates to
-
GROOVY-10636 STC: closure array or varargs parameter not properly type-checked
- Closed