ajwang / groovypptest

Automatically exported from code.google.com/p/groovypptest
0 stars 0 forks source link

negate method on numbers misbehaviour #315

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. A line  def v = - 5**2 in a @Typed class
2. Compile

What is the expected output? What do you see instead?
-25 

Instead: compilation error:
Cannot find method Number.negative() 

What version of the product are you using? On what operating system?
groovy++ 0.2.26 on Windows Vista

Please provide any additional information below.
a "workaround"  - 1*5**2 
works as expected

Original issue reported on code.google.com by ffok...@yahoo.co.uk on 18 Nov 2010 at 4:19

GoogleCodeExporter commented 8 years ago
Issue 314 has been merged into this issue.

Original comment by alex.tka...@gmail.com on 24 Nov 2010 at 6:14

GoogleCodeExporter commented 8 years ago

Original comment by alex.tka...@gmail.com on 11 Dec 2010 at 3:21