mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
Generic type pack has to be referenced by generic type pack name (with ...)
This commit is contained in:
parent
db89abbeac
commit
6dcdf99027
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ Default type parameter values are also allowed for type packs:
|
||||||
```lua
|
```lua
|
||||||
type A<T, U... = ...string> -- ok, variadic type pack
|
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> -- ok, type pack with one element
|
||||||
type D<T..., U... = T> -- ok
|
type D<T..., U... = T...> -- ok
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
Loading…
Add table
Reference in a new issue