浏览代码

GDScript: Add type casting to the precedence table

Max Hilbrunner 5 年之前
父节点
当前提交
54f2ef4ba2
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      getting_started/scripting/gdscript/gdscript_basics.rst

+ 2 - 0
getting_started/scripting/gdscript/gdscript_basics.rst

@@ -271,6 +271,8 @@ The following is the list of supported operators and their precedence.
 +---------------------------------------------------------------+-----------------------------------------+
 | ``if x else``                                                 | Ternary if/else                         |
 +---------------------------------------------------------------+-----------------------------------------+
+| ``as``                                                        | Type casting                            |
++---------------------------------------------------------------+-----------------------------------------+
 | ``=`` ``+=`` ``-=`` ``*=`` ``/=`` ``%=`` ``&=`` ``|=``        | Assignment (lowest priority)            |
 +---------------------------------------------------------------+-----------------------------------------+