Hi there,

the error in the following code is pretty plain, but the way it is being 
reported is seriously misleading. Is that the intended behaviour, or a compiler 
bug?

===
2074 ocs /tmp> <q.groovy 
def all=['hi','there'].findAll { it.startsWith('h')) }
2075 ocs /tmp> /usr/local/groovy-4.0.18/bin/groovy q
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
/private/tmp/q.groovy: 1: Unexpected input: '{' @ line 1, column 32.
   def all=['hi','there'].findAll { it.startsWith('h')) }
                                  ^
1 error
2076 ocs /tmp> 
===

Thanks and all the best,
OC

Reply via email to