You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Restore building web platform by enclosing resolve_function_signature.
This commit is contained in:
@@ -1154,7 +1154,7 @@ void GDScriptAnalyzer::resolve_function_signature(GDScriptParser::FunctionNode *
|
|||||||
GDScriptParser::DataType return_type = resolve_datatype(p_function->return_type);
|
GDScriptParser::DataType return_type = resolve_datatype(p_function->return_type);
|
||||||
p_function->set_datatype(return_type);
|
p_function->set_datatype(return_type);
|
||||||
|
|
||||||
#ifdef DEBUG_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
// Check if the function signature matches the parent. If not it's an error since it breaks polymorphism.
|
// 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.
|
// Not for the constructor which can vary in signature.
|
||||||
GDScriptParser::DataType base_type = parser->current_class->base_type;
|
GDScriptParser::DataType base_type = parser->current_class->base_type;
|
||||||
|
|||||||
Reference in New Issue
Block a user