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.
1 parent 74b9f0b commit 4d86f91Copy full SHA for 4d86f91
tutorials/scripting/gdscript/gdscript_basics.rst
@@ -760,6 +760,16 @@ Valid types are:
760
- Script classes declared with the ``class_name`` keyword.
761
- Autoloads registered as singletons.
762
763
+.. note::
764
+
765
+ While ``Variant`` is a valid type specification, it's not an actual type. It
766
+ only means there's no set type and is equivalent to not having a static type
767
+ at all. Therefore, inference is not allowed by default for ``Variant``,
768
+ since it's likely a mistake.
769
770
+ You can turn off this check, or make it only a warning, by changing it in
771
+ the project settings. See :ref:`doc_gdscript_warning_system` for details.
772
773
Casting
774
^^^^^^^
775
0 commit comments