diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-21 21:19:39 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-21 21:19:39 +0100 |
commit | 253396ba3933b3c1b5a91016ac3eb1fb90788a9d (patch) | |
tree | 9a72e9ba057b8812dda3577477fcdf7ae963da65 /modules/gdscript/gdscript_analyzer.cpp | |
parent | 31726fa945bb422d31bd363da1fd131652375433 (diff) | |
parent | 173101077485a6d4828a1600674de80946208100 (diff) | |
download | redot-engine-253396ba3933b3c1b5a91016ac3eb1fb90788a9d.tar.gz |
Merge pull request #73693 from vnen/gdscript-fix-script-signature-check
GDScript: Fix override signature check of script inheritance
Diffstat (limited to 'modules/gdscript/gdscript_analyzer.cpp')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index e8666e1abd..96c35516bc 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -1538,6 +1538,7 @@ void GDScriptAnalyzer::resolve_function_signature(GDScriptParser::FunctionNode * // Check if the function signature matches the parent. If not it's an error since it breaks polymorphism. // Not for the constructor which can vary in signature. GDScriptParser::DataType base_type = parser->current_class->base_type; + base_type.is_meta_type = false; GDScriptParser::DataType parent_return_type; List<GDScriptParser::DataType> parameters_types; int default_par_count = 0; |