With type pack support in type aliases, this second form with an empty list is now supported

This commit is contained in:
Vyacheslav Egorov 2021-11-30 19:35:55 +02:00
parent 74b889584a
commit cf54ea4254

View file

@ -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.