We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7329907 + 571a85d commit 1335f38Copy full SHA for 1335f38
tutorials/scripting/gdscript/gdscript_styleguide.rst
@@ -1060,6 +1060,11 @@ that type will be used to infer the type of the var.
1060
@onready var health_bar := get_node("UI/LifeBar") as ProgressBar
1061
# health_bar will be typed as ProgressBar
1062
1063
-This option is also considered more :ref:`type-safe<doc_gdscript_static_typing_safe_lines>` than the first.
+
1064
+.. note::
1065
1066
+ This option is considered more :ref:`type-safe<doc_gdscript_static_typing_safe_lines>` than type hints,
1067
+ but also less null-safe as it silently casts the variable to ``null`` in case of a type mismatch at runtime,
1068
+ without an error/warning.
1069
1070
0 commit comments