summaryrefslogtreecommitdiffstats
path: root/platform/android/java_class_wrapper.cpp
diff options
context:
space:
mode:
author20kdc <asdd2808@gmail.com>2023-12-08 12:26:44 +0000
committerDanil Alexeev <danil@alexeev.xyz>2024-03-01 17:14:59 +0300
commit24181d10552e3bedca05f1f0a470eb29a2d93975 (patch)
tree877663979d7a01646c29efda39295200cce7ae59 /platform/android/java_class_wrapper.cpp
parent8e951fd0a92c551f260c3272039181be32121a32 (diff)
downloadredot-engine-24181d10552e3bedca05f1f0a470eb29a2d93975.tar.gz
GDScript: Adjust STATIC_CALLED_ON_INSTANCE warning to not default to the native type, and to not trigger on self-calls
Not defaulting to the native type rationale: Defaulting to the native type is less than useful, as: * There are very few native types that are extensible and have static methods. * Defaulting to the native type does not account for a method being script-defined. While the "real fix" would be to carefully track the source of the method, the get_function_signature method is already complicated enough. This will at least ensure the resulting code should always be valid. Not triggering on self-calls rationale: Found in PR comment https://github.com/godotengine/godot/pull/85918#issuecomment-1935864459 ``` static func example(): pass func example2(): example() # self-call on static function ``` Disabling this warning on self-calls is: * Consistent with other languages * Important for anonymous classes (where the output code is unusable)
Diffstat (limited to 'platform/android/java_class_wrapper.cpp')
0 files changed, 0 insertions, 0 deletions