diff --git a/tutorials/scripting/gdscript/gdscript_styleguide.rst b/tutorials/scripting/gdscript/gdscript_styleguide.rst index 6230736ea..1fe696b94 100644 --- a/tutorials/scripting/gdscript/gdscript_styleguide.rst +++ b/tutorials/scripting/gdscript/gdscript_styleguide.rst @@ -1050,7 +1050,10 @@ that type will be used to infer the type of the var. @onready var health_bar := get_node("UI/LifeBar") as ProgressBar # health_bar will be typed as ProgressBar -This option is also considered more :ref:`type-safe` than the first. + +.. note:: + + This option is considered less :ref:`type-safe` than type hints, as it silently casts the variable to null in case of a type mismatch at runtime, without an error/warning **Bad**: