diff options
Diffstat (limited to 'modules/gdscript/tests/scripts/runtime/features/match_string_stringname_equivalent.gd')
-rw-r--r-- | modules/gdscript/tests/scripts/runtime/features/match_string_stringname_equivalent.gd | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/runtime/features/match_string_stringname_equivalent.gd b/modules/gdscript/tests/scripts/runtime/features/match_string_stringname_equivalent.gd new file mode 100644 index 0000000000..55be021a90 --- /dev/null +++ b/modules/gdscript/tests/scripts/runtime/features/match_string_stringname_equivalent.gd @@ -0,0 +1,14 @@ +# https://github.com/godotengine/godot/issues/60145 + +func test(): + match "abc": + &"abc": + print("String matched StringName") + _: + print("no match") + + match &"abc": + "abc": + print("StringName matched String") + _: + print("no match") |