mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Add generic declaration for functions
This commit is contained in:
parent
4bf601ecc5
commit
e0b9aadb06
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ stat = varlist '=' explist |
|
|||
laststat = 'return' [explist] | 'break' | 'continue'
|
||||
|
||||
funcname = NAME {'.' NAME} [':' NAME]
|
||||
funcbody = '(' [parlist] ')' [':' ReturnType] block 'end'
|
||||
funcbody = ['<' GenericTypeList '>'] '(' [parlist] ')' [':' ReturnType] block 'end'
|
||||
parlist = bindinglist [',' '...'] | '...'
|
||||
|
||||
explist = {exp ','} exp
|
||||
|
|
Loading…
Add table
Reference in a new issue