Michael Chen created GROOVY-7693:
------------------------------------

             Summary: Error when trying to print negative number in console
                 Key: GROOVY-7693
                 URL: https://issues.apache.org/jira/browse/GROOVY-7693
             Project: Groovy
          Issue Type: Bug
          Components: Groovy Console
    Affects Versions: 2.4.5
         Environment: OS: Mac OS X 10.11 and Debian GNU/Linux Jessie 8.0
Java: JDK 7u80
Groovy: 2.4.5
            Reporter: Michael Chen
            Priority: Minor


$ groovy -e 'println -3'
Caught: groovy.lang.MissingPropertyException: No such property: println for 
class: script_from_command_line
groovy.lang.MissingPropertyException: No such property: println for class: 
script_from_command_line
        at script_from_command_line.run(script_from_command_line:1)

$ groovy -e 'println (-3)'
-3

This error occurred when written either in script file or on-the-fly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to