forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved lambda hotswapping when uniquely named
- Loading branch information
1 parent
6757f27
commit bf4a1cf
Showing
12 changed files
with
265 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
var member1 := func(): | ||
return "Member 1" | ||
|
||
var local1: Callable | ||
|
||
var param1: Callable | ||
|
||
var anon1: Callable | ||
var anon2: Callable | ||
|
||
func test(): | ||
var _v1 = func(): return "Local 1" | ||
local1 = _v1 | ||
|
||
print(local1.call()) | ||
|
||
print(member1.call()) | ||
|
||
test_parameters() | ||
|
||
print(param1.call()) | ||
|
||
anon1 = func(): return "Anonymous 1" | ||
anon2 = func(): return "Anonymous 2" | ||
|
||
print(anon1.call()) | ||
print(anon2.call()) | ||
|
||
func test_parameters(_v1 = func(): return "Param 1"): | ||
param1 = _v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
GDTEST_OK | ||
Local 1 | ||
Member 1 | ||
Param 1 | ||
Anonymous 1 | ||
Anonymous 2 |
Oops, something went wrong.