mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
type pack drawback
This commit is contained in:
parent
0285afbd73
commit
16970abbfb
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,8 @@ SomethingWithAGenericTable(5) --not OK
|
|||
|
||||
This adds unusual syntax, as well as adding to the complexity of the language.
|
||||
|
||||
This also doesn't address how this should be approached around type packs.
|
||||
|
||||
## Alternatives
|
||||
|
||||
Do nothing, and use the `assert(type(T) == T)` syntax, though this creates extra bytecode.
|
||||
|
|
Loading…
Add table
Reference in a new issue