mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-16 18:44:56 -05:00
compound assignments are now represented as Assign nodes (rather than Op) and have the same precedence as =
This commit is contained in:
@@ -19,7 +19,7 @@ ok(area(
|
||||
|
||||
sumOfArgs = ->
|
||||
sum = 0
|
||||
sum += val for val in arguments
|
||||
(sum += val) for val in arguments
|
||||
sum
|
||||
|
||||
ok sumOfArgs(1, 2, 3, 4, 5) is 15
|
||||
|
||||
Reference in New Issue
Block a user