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.
- Loading branch information
1 parent
0bb94df
commit d68870b
Showing
10 changed files
with
80 additions
and
60 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
2 changes: 1 addition & 1 deletion
2
modules/gdscript/tests/scripts/analyzer/errors/cyclic_inheritance.out
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
Cyclic inheritance. | ||
Could not resolve class "InnerA": Cyclic inheritance. |
4 changes: 4 additions & 0 deletions
4
modules/gdscript/tests/scripts/analyzer/features/out_of_order_inheritance.gd
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,4 @@ | ||
func test(): | ||
print("test") | ||
var t = preload("out_of_order_inheritance_a.notest.gd").new() | ||
print(t.test_val) |
2 changes: 2 additions & 0 deletions
2
modules/gdscript/tests/scripts/analyzer/features/out_of_order_inheritance.out
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,2 @@ | ||
GDTEST_OK | ||
waiting for godot |
14 changes: 14 additions & 0 deletions
14
modules/gdscript/tests/scripts/analyzer/features/out_of_order_inheritance_a.notest.gd
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,14 @@ | ||
extends "out_of_order_inheritance_b.notest.gd" | ||
|
||
var test_val = test_val_base % test_fn() | ||
|
||
class AA extends BA: | ||
const test_val_aa = test_val_a | ||
|
||
class AB: | ||
const test_val_base = test_val_ba | ||
|
||
func test_fn(): | ||
return "godot" | ||
|
||
const test_val_a = "waiting for %s" |
5 changes: 5 additions & 0 deletions
5
modules/gdscript/tests/scripts/analyzer/features/out_of_order_inheritance_b.notest.gd
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,5 @@ | ||
extends "out_of_order_inheritance_a.notest.gd".AA | ||
|
||
|
||
class BA extends "out_of_order_inheritance_a.notest.gd".AB: | ||
const test_val_ba = test_val_aa |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...rrors/class_name_shadows_builtin_type.out → ...rrors/class_name_shadows_builtin_type.out
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
GDTEST_ANALYZER_ERROR | ||
GDTEST_PARSER_ERROR | ||
Class "Vector2" hides a built-in type. |