You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there (or planned) a way of letting the compiler know you know what you're doing?
Documentation will be updated, but for now see #19993. You can disable warnings in a file, or in a particular instance of the warning with special comments. You can also disable a type of warning globally in the Project Settings.
Also, RETURN_VALUE_DISCARDED should not be thrown when a method is called on that line. For example, the return value IS indeed used here, but it's just not stored:
get_tree().change_scene("res://whatever")
Adding var a = to the front of it stops the warning from being shown.
…discarding other, possibly useful ones, when doing things like:
…and possibly others I haven't encountered yet.
Is there (or planned) a way of letting the compiler know you know what you're doing?
The text was updated successfully, but these errors were encountered: