diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-02-04 13:49:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-04 13:49:15 +0100 |
commit | 89eb6d372d83f0e79ff7bcc78c304a37bed72abe (patch) | |
tree | e82dea1789ceaaf838c99e52777041f639088f33 /modules/gdscript/gdscript_parser.h | |
parent | 225a3b2545691148dbcb2acf94e4fada024e809d (diff) | |
parent | ceafdf347e5ecc050629fd4eac93030dabb0d0e9 (diff) | |
download | redot-engine-89eb6d372d83f0e79ff7bcc78c304a37bed72abe.tar.gz |
Merge pull request #57591 from vnen/gdscript-enum-fixes
Diffstat (limited to 'modules/gdscript/gdscript_parser.h')
-rw-r--r-- | modules/gdscript/gdscript_parser.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/gdscript/gdscript_parser.h b/modules/gdscript/gdscript_parser.h index e4311d2d5e..c09b07282f 100644 --- a/modules/gdscript/gdscript_parser.h +++ b/modules/gdscript/gdscript_parser.h @@ -106,8 +106,7 @@ public: NATIVE, SCRIPT, CLASS, // GDScript. - ENUM, // Full enumeration. - ENUM_VALUE, // Value from enumeration. + ENUM, // Enumeration. VARIANT, // Can be any type. UNRESOLVED, }; @@ -185,8 +184,6 @@ public: return builtin_type == p_other.builtin_type; case NATIVE: case ENUM: - return native_type == p_other.native_type; - case ENUM_VALUE: return native_type == p_other.native_type && enum_type == p_other.enum_type; case SCRIPT: return script_type == p_other.script_type; |