[ https://issues.apache.org/jira/browse/GROOVY-8991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul King closed GROOVY-8991. ----------------------------- > Difference in behaviour with closure and lambda > ----------------------------------------------- > > Key: GROOVY-8991 > URL: https://issues.apache.org/jira/browse/GROOVY-8991 > Project: Groovy > Issue Type: Bug > Components: Compiler > Affects Versions: 3.0.0-alpha-4 > Reporter: Alexey Afanasiev > Assignee: Daniel Sun > Priority: Major > Fix For: 3.0.0-beta-1 > > Time Spent: 20m > Remaining Estimate: 0h > > {code} > foo { > closure > } > .bar { > closure2 > } > //produced binary like > this.foo({ > return closure > }).bar({ > return closure2 > }) > {code} > but > {code} > foo ()->{ > closure > } > .bar ()->{ > closure2 > } > //produced binary like > this.foo({ > return closure > }.bar).{ > return closure2 > } > {code} > I believe this difference is quite unexpected. -- This message was sent by Atlassian JIRA (v7.6.3#76005)