Logo
Explore Help
Sign In
northern-lighthouse/godot
1
0
Fork 0
You've already forked godot
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
9e6098432aac35bae42c9089a29ba2a80320d823
godot/modules/gdscript/tests/scripts/analyzer/warnings/confusable_local_usage.out

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
264 B
Plaintext
Raw Normal View History

GDScript: Fix bug with identifier shadowed below in current scope
2023-07-25 14:21:49 +03:00
GDTEST_OK
>> WARNING
>> Line: 4
>> CONFUSABLE_LOCAL_USAGE
>> The identifier "a" will be shadowed below in the block.
>> WARNING
>> Line: 5
>> SHADOWED_VARIABLE
Fix analyzer pushing SHADOWED_VARIABLE warning for members shadowed in subclasses This fixes a bug in the analyzer where it did not push the SHADOWED_VARIABLE_BASE_CLASS warning for members shadowed by variable in subclass. It does this by comparing the class which contains the shadowed member with the class containing the variable, and pushing SHADOWED_VARIABLE only if the classes are the same. Additionally, SHADOWED_VARIABLE_BASE_CLASS can take an extra symbol which helps to specify the line for non native base class.
2024-11-06 00:37:18 +00:00
>> The local variable "a" is shadowing an already-declared variable at line 1 in the current class.
GDScript: Fix bug with identifier shadowed below in current scope
2023-07-25 14:21:49 +03:00
1
2
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.1 Page: 314ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API