From 1dbd90ca624e0630168c809adc14cbaf499d8d7b Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Tue, 2 May 2023 12:57:12 +0100 Subject: [PATCH] fix type pack param default --- docs/_pages/grammar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_pages/grammar.md b/docs/_pages/grammar.md index b451f1c7..8cab82c6 100644 --- a/docs/_pages/grammar.md +++ b/docs/_pages/grammar.md @@ -76,7 +76,7 @@ GenericTypePackParameter = NAME '...' GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter} GenericTypePackParameterWithDefault = NAME '...' ['=' (TypePack | VariadicTypePack | GenericTypePack)] -GenericTypeListWithDefaults = NAME ['=' Type] [',' GenericTypeListWithDefaults] | GenericTypePackParameter {',' GenericTypePackParameter} +GenericTypeListWithDefaults = NAME ['=' Type] [',' GenericTypeListWithDefaults] | GenericTypePackParameterWithDefault {',' GenericTypePackParameterWithDefault} TypeList = Type [',' TypeList] | '...' Type TypeParams = (Type | TypePack | VariadicTypePack | GenericTypePack) [',' TypeParams]