mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Allow empty table type
This commit is contained in:
parent
1dbd90ca62
commit
62481d1dd5
1 changed files with 1 additions and 1 deletions
|
@ -88,6 +88,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] '}'
|
||||||
FunctionType = ['<' GenericTypeList '>'] '(' [TypeList] ')' '->' ReturnType
|
FunctionType = ['<' GenericTypeList '>'] '(' [TypeList] ')' '->' ReturnType
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue