groovy

function call in assigning default method parameter throws: Expecting to find object/array on stack