Can't set the delagate on a curried closure

Details

Description

def c =

{a -> println z}

def cc = c.curry(1)

cc.delegate = [z: "goodbye"]
cc()

throws
Caught: groovy.lang.MissingPropertyException: No such property: z for class: test
groovy.lang.MissingPropertyException: No such property: z for class: test
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:888)
at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:2077)
at groovy.lang.GroovyObjectSupport.getProperty(GroovyObjectSupport.java:65)
at groovy.lang.Script.getProperty(Script.java:85)