groovy

Strange behaviour when passing chained methods (methodA().methodB().etc()) as parameters