blob: 67225cad6add1c8fb6ee82267e61c1fdc413df27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# https://github.com/godotengine/godot/issues/93952
func foo():
pass
func test():
var a: int
var lambda_self := func (x: int) -> void:
foo()
print(a, x)
print(lambda_self.get_argument_count()) # Should print 1.
var lambda_non_self := func (x: int) -> void:
print(a, x)
print(lambda_non_self.get_argument_count()) # Should print 1.
|