From 74b889584a227df4b05e1dcab7ce6c4e93972fd3 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Wed, 24 Nov 2021 14:05:35 +0200 Subject: [PATCH] Do not allow regular type assignment to a type pack as a default parameter --- rfcs/syntax-default-type-alias-type-parameters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rfcs/syntax-default-type-alias-type-parameters.md b/rfcs/syntax-default-type-alias-type-parameters.md index 23bd71a8..4d7d1ede 100644 --- a/rfcs/syntax-default-type-alias-type-parameters.md +++ b/rfcs/syntax-default-type-alias-type-parameters.md @@ -49,7 +49,7 @@ type A = ... -- not allowed Default type parameter values are also allowed for type packs: ```lua type A -- ok, variadic type pack -type C -- ok, type pack with one element +type C -- ok, type pack with one element type D -- ok ```