why my enum not poping when i use it in match ?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By potatobanana

hi, why my enum not poping when i use it in match ?
it work on g3
it wont pop in dictionary too
example

enum obj_type { weapon, armor, accessories, material, ingredient, etc  }

under func

it work like this

if item_type == obj_type.armor:
    pass

it wont pop if like this

match item_type:
    obj_type.
:bust_in_silhouette: Reply From: Oian

Hi,

i had the same problem over several projects. This might be a bug of Godot 4.