From c45b9245ae96db5fd8b264adf8dcd396538ee0d0 Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Tue, 3 Jan 2023 21:07:20 -0500 Subject: Fix parse error using Vector{2,3,4}.INF --- modules/gdscript/tests/scripts/parser/features/vector_inf.gd | 6 ++++++ modules/gdscript/tests/scripts/parser/features/vector_inf.out | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 modules/gdscript/tests/scripts/parser/features/vector_inf.gd create mode 100644 modules/gdscript/tests/scripts/parser/features/vector_inf.out (limited to 'modules/gdscript/tests') diff --git a/modules/gdscript/tests/scripts/parser/features/vector_inf.gd b/modules/gdscript/tests/scripts/parser/features/vector_inf.gd new file mode 100644 index 0000000000..039d51d9ed --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/vector_inf.gd @@ -0,0 +1,6 @@ +func test(): + var vec2: = Vector2.INF + var vec3: = Vector3.INF + + print(vec2.x == INF) + print(vec3.z == INF) diff --git a/modules/gdscript/tests/scripts/parser/features/vector_inf.out b/modules/gdscript/tests/scripts/parser/features/vector_inf.out new file mode 100644 index 0000000000..9d111a8322 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/vector_inf.out @@ -0,0 +1,3 @@ +GDTEST_OK +true +true -- cgit v1.2.3