mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
With type pack support in type aliases, this second form with an empty list is now supported
This commit is contained in:
parent
74b889584a
commit
cf54ea4254
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ If all type parameters have a default type value, it is now possible to referenc
|
|||
type All<T = string, U = number> = ...
|
||||
|
||||
local a: All -- ok
|
||||
local b: All<> -- not allowed
|
||||
local b: All<> -- ok as well
|
||||
```
|
||||
|
||||
If type is exported from a module, default type parameter values will still be available when module is imported.
|
||||
|
|
Loading…
Add table
Reference in a new issue