Merge pull request #90398 from KoBeWi/secret_features👀

Add tests for signal await with parameters
This commit is contained in:
Rémi Verschelde 2024-04-08 21:56:15 +02:00
commit dd926b9132
No known key found for this signature in database
GPG key ID: C3336907360768E1
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,25 @@
signal no_parameters()
signal one_parameter(number)
signal two_parameters(number1, number2)
func await_no_parameters():
var result = await no_parameters
print(result)
func await_one_parameter():
var result = await one_parameter
print(result)
func await_two_parameters():
var result = await two_parameters
print(result)
func test():
await_no_parameters()
no_parameters.emit()
await_one_parameter()
one_parameter.emit(1)
await_two_parameters()
two_parameters.emit(1, 2)

View file

@ -0,0 +1,4 @@
GDTEST_OK
<null>
1
[1, 2]