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 02495bf commit 2ec31a3Copy full SHA for 2ec31a3
swift-6-beta.docc/ReferenceManual/Declarations.md
@@ -377,6 +377,8 @@ newAndOld.x = 200
377
378
要声明一个类型变量属性,请使用 `static` 声明修饰符标记声明。类可以使用 `class` 声明修饰符标记类型计算属性,以允许子类覆盖超类的实现。类型属性的讨论请参见 <doc:Properties#Type-Properties>。
379
380
+> 变量声明的语法:
381
+>
382
> *variable-declaration* → *variable-declaration-head* *pattern-initializer-list* \
383
> *variable-declaration* → *variable-declaration-head* *variable-name* *type-annotation* *code-block* \
384
> *variable-declaration* → *variable-declaration-head* *variable-name* *type-annotation* *getter-setter-block* \
0 commit comments