mirror of
https://github.com/godotengine/godot.git
synced 2025-02-05 21:41:47 +08:00
DO NOT BATCH MERGE WITH #77324, WILL RESULT IN BROKEN CI Currently, calling super() inside _init() throws a RETURN_VALUE_DISCARDED warning. The analyzer identifies super() as being a constructor, which therefore returns an object of the relevant class. However, super() isn't really a constructor by itself: in this case, it is _part_ of the constructor, and so doesn't "return" a value. A test case for this is already in #77324, which contains the warning. I am duplicating it here, without the warning, and it should conflict with the other PR. |
||
---|---|---|
.. | ||
doc_classes | ||
editor | ||
icons | ||
language_server | ||
tests | ||
config.py | ||
gdscript_analyzer.cpp | ||
gdscript_analyzer.h | ||
gdscript_byte_codegen.cpp | ||
gdscript_byte_codegen.h | ||
gdscript_cache.cpp | ||
gdscript_cache.h | ||
gdscript_codegen.h | ||
gdscript_compiler.cpp | ||
gdscript_compiler.h | ||
gdscript_disassembler.cpp | ||
gdscript_editor.cpp | ||
gdscript_function.cpp | ||
gdscript_function.h | ||
gdscript_lambda_callable.cpp | ||
gdscript_lambda_callable.h | ||
gdscript_parser.cpp | ||
gdscript_parser.h | ||
gdscript_rpc_callable.cpp | ||
gdscript_rpc_callable.h | ||
gdscript_tokenizer.cpp | ||
gdscript_tokenizer.h | ||
gdscript_utility_functions.cpp | ||
gdscript_utility_functions.h | ||
gdscript_vm.cpp | ||
gdscript_warning.cpp | ||
gdscript_warning.h | ||
gdscript.cpp | ||
gdscript.h | ||
register_types.cpp | ||
register_types.h | ||
SCsub |