virtualx-engine/modules/gdscript/tests/scripts/analyzer/features/gdscript_to_preload.gd
Antonio Dell'Annunziata f81a166ab8
fix(gdscript): Infer type from preload const
When resolving the type of the attribute from the variant, the result_type.kind was overritten for no reason.
It is assumed that this only needs to be done, if the variant value is not valid to have any kind here.

Solves #63715
2022-08-07 16:09:24 +02:00

7 lines
66 B
GDScript

const A := 42
func test():
pass
func something():
return "OK"