Details
-
Suggestion
-
Resolution: Duplicate
-
P2: Important
-
4.7.0
-
None
-
f31d94f2d4438106558dede0de1a423cade960a9
Description
Currently a property declaration only allows:
- Expression
- UiQualifiedId UiObjectInitializer
while property bindings allow
- IfStatement
- ExpressionStatement
- EmptyStatement
- Block
- [ UiArrayMemberList ]
- UiQualifiedId UiObjectInitializer
I argue that this is an unnecessary difference. The declaration should allow:
- IfStatement
- ExpressionStatement
- Block
- UiQualifiedId UiObjectInitializer
EmptyStatement is probably unneeded in a property declaration and the array one is only needed for property declarations of list type.