Skip to content

Commit 911c21f

Browse files
committed
Update test to prove that there's no collision in generated variables
1 parent 5279558 commit 911c21f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functions.coffee

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,4 +479,6 @@ test "#4413: expressions in function parameters that create generated variables
479479
foo = -> null
480480
bar = -> 33
481481
f = (a = foo() ? bar()) -> a
482+
g = (a = foo() ? bar()) -> a + 1
482483
eq f(), 33
484+
eq g(), 34

0 commit comments

Comments
 (0)