From 5972ba17a4977f72656f59cbfa5e935d483571d9 Mon Sep 17 00:00:00 2001 From: Dmitrii Maganov Date: Mon, 13 Feb 2023 20:25:41 +0200 Subject: GDScript: Fix infer on read-only property --- modules/gdscript/gdscript_analyzer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 8d09249125..d0525be853 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -1742,6 +1742,7 @@ void GDScriptAnalyzer::resolve_assignable(GDScriptParser::AssignableNode *p_assi } type.is_constant = is_constant; + type.is_read_only = false; p_assignable->set_datatype(type); } -- cgit v1.2.3