diff options
author | George Marques <george@gmarqu.es> | 2023-01-12 11:22:01 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-12 11:22:01 -0300 |
commit | 7319fa60825ec2e530fe843897b350e6012ae461 (patch) | |
tree | 0f8b62452bc3731ca7d828cf5296495d545561bf /modules/gdscript/tests | |
parent | 9943cb624200374ef9f4f51482cc4a39c0651769 (diff) | |
parent | 056066ee95a62291806a908e9fb634533f2222e0 (diff) |
Merge pull request #70713 from vonagam/fix-unnamed-enum-outer-conflicts
Diffstat (limited to 'modules/gdscript/tests')
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/unnamed_enums_outer_conflicts.gd | 17 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/unnamed_enums_outer_conflicts.out | 5 |
2 files changed, 22 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/unnamed_enums_outer_conflicts.gd b/modules/gdscript/tests/scripts/parser/features/unnamed_enums_outer_conflicts.gd new file mode 100644 index 0000000000..4cbb464f59 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/unnamed_enums_outer_conflicts.gd @@ -0,0 +1,17 @@ +class A: + enum { X = 1 } + + class B: + enum { X = 2 } + +class C: + const X = 3 + + class D: + enum { X = 4 } + +func test(): + print(A.X) + print(A.B.X) + print(C.X) + print(C.D.X) diff --git a/modules/gdscript/tests/scripts/parser/features/unnamed_enums_outer_conflicts.out b/modules/gdscript/tests/scripts/parser/features/unnamed_enums_outer_conflicts.out new file mode 100644 index 0000000000..7536c38490 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/unnamed_enums_outer_conflicts.out @@ -0,0 +1,5 @@ +GDTEST_OK +1 +2 +3 +4 |