You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2019/07/15 22:17:25 UTC

[GitHub] [groovy] mvmn edited a comment on issue #910: GROOVY-9083: groovyConsole should be updated to understand method ref…

mvmn edited a comment on issue #910: GROOVY-9083: groovyConsole should be updated to understand method ref…
URL: https://github.com/apache/groovy/pull/910#issuecomment-511587368
 
 
   Why doesn't this work in Groovy Shell though?
   
   ```
   > [1,2,3].stream().map(String::valueOf).collect(java.util.stream.Collectors.toList())
   groovysh_parse: 2: unexpected token: : @ line 2, column 29.
      [1,2,3].stream().map(String::valueOf).collect(java.util.stream.Collectors.toList())
                                  ^
   > [1,2,3].stream().map(v->String.valueOf(v)).collect(java.util.stream.Collectors.toList())
   groovysh_parse: 2: unexpected token: -> @ line 2, column 23.
      [1,2,3].stream().map(v->String.valueOf(v)).collect(java.util.stream.Collectors.toList())
                            ^
   ```
   
   P.S. Is it because of [GROOVY-8279](https://issues.apache.org/jira/browse/GROOVY-8279) ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services