mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
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:
parent
cf54ea4254
commit
ce6cc9c162
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue