diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-03-07 10:40:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-07 10:40:42 +0100 |
commit | 8c3d8b12ed1b02670a58f8267ab414f76d00ce3f (patch) | |
tree | 4048d9e22695f10bbe8c79a7729496269971b7f1 /modules | |
parent | d0c614ba741fad6ad68731eac996b0310d5c24af (diff) | |
parent | 2eaadb1b52dbf9387c55f51f22c118291501da9f (diff) |
Merge pull request #58853 from V-Sekai/default-arg-values
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_analyzer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_analyzer.cpp b/modules/gdscript/gdscript_analyzer.cpp index 547fd1cfd5..326720ce86 100644 --- a/modules/gdscript/gdscript_analyzer.cpp +++ b/modules/gdscript/gdscript_analyzer.cpp @@ -1154,7 +1154,7 @@ void GDScriptAnalyzer::resolve_function_signature(GDScriptParser::FunctionNode * GDScriptParser::DataType return_type = resolve_datatype(p_function->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. // Not for the constructor which can vary in signature. GDScriptParser::DataType base_type = parser->current_class->base_type; |