We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Godot 4.0.1.stable
Windows 10, Forward+
Example code:
@warning_ignore("shadowed_global_identifier") static func print_debug(msg: String):
the warning is ignored by pressing [ignore] in the warnings panel.
pressing it multiple times results in:
@warning_ignore("shadowed_global_identifier", "shadowed_global_identifier")
Shadowing a global function with a method of script:
@warning_ignore("shadowed_global_identifier") static func print_debug(msg: String): pass
The text was updated successfully, but these errors were encountered:
This issue seems to only be happening on the top level scope of a script. These two top-level declarations show the warning in the panel:
@warning_ignore("shadowed_global_identifier") func print_debug(): pass
@warning_ignore("shadowed_global_identifier") var print_debug
While the @warning_ignore("shadowed_global_identifier") annotation seems to work properly on a functions inner scope, like so:
@warning_ignore("shadowed_global_identifier")
func foo(): @warning_ignore("shadowed_global_identifier") var print_debug
This last case doesn't show the warning in the panel when the annotation is applied.
Sorry, something went wrong.
@warning_ignore
Successfully merging a pull request may close this issue.
Godot version
Godot 4.0.1.stable
System information
Windows 10, Forward+
Issue description
Example code:
the warning is ignored by pressing [ignore] in the warnings panel.
pressing it multiple times results in:
Steps to reproduce
Shadowing a global function with a method of script:
Minimal reproduction project
The text was updated successfully, but these errors were encountered: