mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
test case for #768
This commit is contained in:
@@ -145,3 +145,10 @@ ok new Number not instanceof String
|
||||
|
||||
#737: `in` should have higher precedence than logical operators
|
||||
eq 1, 1 in [1] and 1
|
||||
|
||||
#768: `in` should preserve evaluation order
|
||||
share = 0
|
||||
a = -> share++ if share is 0
|
||||
b = -> share++ if share is 1
|
||||
c = -> share++ if share is 2
|
||||
ok a() not in [b(),c()] and share is 3
|
||||
|
||||
Reference in New Issue
Block a user