From 4854e723be33cea4ebeb1aa697cb0a0d2aa1108f Mon Sep 17 00:00:00 2001 From: "ocean (they/them)" Date: Wed, 18 Jan 2023 09:12:27 -0500 Subject: Fix unnammed enum crash regression --- .../tests/scripts/analyzer/features/enum_unnamed_depend.gd | 7 +++++++ .../tests/scripts/analyzer/features/enum_unnamed_depend.out | 1 + 2 files changed, 8 insertions(+) create mode 100644 modules/gdscript/tests/scripts/analyzer/features/enum_unnamed_depend.gd create mode 100644 modules/gdscript/tests/scripts/analyzer/features/enum_unnamed_depend.out (limited to 'modules/gdscript/tests/scripts') diff --git a/modules/gdscript/tests/scripts/analyzer/features/enum_unnamed_depend.gd b/modules/gdscript/tests/scripts/analyzer/features/enum_unnamed_depend.gd new file mode 100644 index 0000000000..f351fc1f7b --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/features/enum_unnamed_depend.gd @@ -0,0 +1,7 @@ +enum { + V1, + V2 = V1, +} + +func test(): + pass diff --git a/modules/gdscript/tests/scripts/analyzer/features/enum_unnamed_depend.out b/modules/gdscript/tests/scripts/analyzer/features/enum_unnamed_depend.out new file mode 100644 index 0000000000..d73c5eb7cd --- /dev/null +++ b/modules/gdscript/tests/scripts/analyzer/features/enum_unnamed_depend.out @@ -0,0 +1 @@ +GDTEST_OK -- cgit v1.2.3