Skip to content

Commit edecf6b

Browse files
committed
Add test case for comma after lambda function argument
#161
1 parent 84297ce commit edecf6b

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
func test():
2+
hurt_tween.tween_method(
3+
func(weight):
4+
var hue = interpolate_hue(current_hue, target_hue, weight)
5+
# The tailing comma here should stay there as it completes the
6+
# lambda argument
7+
starnest.set_instance_shader_parameter("hue_shift", hue),
8+
0.0,
9+
1.0,
10+
2.0,
11+
)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
func test():
2+
hurt_tween.tween_method(
3+
func(weight):
4+
var hue = interpolate_hue(current_hue, target_hue, weight)
5+
# The tailing comma here should stay there as it completes the
6+
# lambda argument
7+
starnest.set_instance_shader_parameter("hue_shift", hue),
8+
0.0,
9+
1.0,
10+
2.0,
11+
)

0 commit comments

Comments
 (0)