mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Add "array" type to table
This commit is contained in:
parent
f2391131b7
commit
4b90c10f13
1 changed files with 1 additions and 1 deletions
|
@ -93,6 +93,6 @@ TableIndexer = '[' Type ']' ':' Type
|
||||||
TableProp = NAME ':' Type
|
TableProp = NAME ':' Type
|
||||||
TablePropOrIndexer = TableProp | TableIndexer
|
TablePropOrIndexer = TableProp | TableIndexer
|
||||||
PropList = TablePropOrIndexer {fieldsep TablePropOrIndexer} [fieldsep]
|
PropList = TablePropOrIndexer {fieldsep TablePropOrIndexer} [fieldsep]
|
||||||
TableType = '{' [PropList] '}'
|
TableType = '{' [(PropList | Type)] '}'
|
||||||
FunctionType = ['<' GenericTypeList '>'] '(' [BoundTypeList] ')' '->' ReturnType
|
FunctionType = ['<' GenericTypeList '>'] '(' [BoundTypeList] ')' '->' ReturnType
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue