summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/runtime/features/match_string_stringname_equivalent.gd
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-09 18:06:48 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-09 18:06:48 +0100
commit907298d673723d7d957c382647dedde66c29ecd2 (patch)
tree62537ac5e18b24834e8231a57a73e20ea4ec1535 /modules/gdscript/tests/scripts/runtime/features/match_string_stringname_equivalent.gd
parent597e0c0fb9c4bd725dae1fca75875ec4c936079f (diff)
parente79be6ce07ed8c89011f759ecade070a3bd5a806 (diff)
downloadredot-engine-907298d673723d7d957c382647dedde66c29ecd2.tar.gz
Merge pull request #68747 from rune-scape/rune-stringname-unification
GDScript: Unify StringName and String
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.gd14
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")