Update rfcs/syntax-default-type-alias-type-parameters.md

Co-authored-by: Alan Jeffrey <403333+asajeffrey@users.noreply.github.com>
This commit is contained in:
vegorov-rbx 2021-12-03 09:53:10 -08:00 committed by GitHub
parent cf54ea4254
commit ce6cc9c162
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,6 +50,8 @@ Default type parameter values are also allowed for type packs:
```lua
type A<T, U... = ...string> -- ok, variadic type pack
type C<T, U... = (string)> -- ok, type pack with one element
type C<T, U... = (string,number)> -- ok, type pack with two elements
type C<T, U... = ()> -- ok, type pack with no elements
type D<T..., U... = T...> -- ok
```