diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-26 01:07:00 +0100 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-26 01:07:00 +0100 |
| commit | a5c211641f445cfe1a70260a80cbb6b8a37e984b (patch) | |
| tree | c6afe14f98644c10ae48c9ca7841c664697be010 /modules/gdscript/tests/scripts/parser/features | |
| parent | cb8aeca1caff50459d319072904201e0f63bf768 (diff) | |
| parent | b004f8180e37d1d3a6f06bb5f7f6992b8f0ad5d2 (diff) | |
Merge pull request #71634 from dalexeev/gds-annotations-analyzer
GDScript: Allow constant expressions in annotations
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/features')
| -rw-r--r-- | modules/gdscript/tests/scripts/parser/features/arrays_dictionaries_nested_const.gd | 2 | ||||
| -rw-r--r-- | modules/gdscript/tests/scripts/parser/features/export_variable.gd | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/arrays_dictionaries_nested_const.gd b/modules/gdscript/tests/scripts/parser/features/arrays_dictionaries_nested_const.gd index cc78309ae4..a34cc26e67 100644 --- a/modules/gdscript/tests/scripts/parser/features/arrays_dictionaries_nested_const.gd +++ b/modules/gdscript/tests/scripts/parser/features/arrays_dictionaries_nested_const.gd @@ -1,6 +1,6 @@ # https://github.com/godotengine/godot/issues/50285 -@warning_ignore(unused_local_constant) +@warning_ignore("unused_local_constant") func test(): const CONST_INNER_DICTIONARY = { "key": true } const CONST_NESTED_DICTIONARY_OLD_WORKAROUND = { diff --git a/modules/gdscript/tests/scripts/parser/features/export_variable.gd b/modules/gdscript/tests/scripts/parser/features/export_variable.gd index 1e072728fc..acf9ff2e21 100644 --- a/modules/gdscript/tests/scripts/parser/features/export_variable.gd +++ b/modules/gdscript/tests/scripts/parser/features/export_variable.gd @@ -5,7 +5,7 @@ @export var color: Color @export_color_no_alpha var color_no_alpha: Color -@export_node_path(Sprite2D, Sprite3D, Control, Node) var nodepath := ^"hello" +@export_node_path("Sprite2D", "Sprite3D", "Control", "Node") var nodepath := ^"hello" func test(): |