mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Fix some more wording. Thanks Slava!
This commit is contained in:
parent
17c418adce
commit
9dd672bb8d
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ Snippet `F.lua` is also fixed with this ruleset: There is no subtyping relations
|
|||
|
||||
This works, but itself creates some small problems that we need to resolve:
|
||||
|
||||
First, the type of `...` still needs to be `()` for functions that have been given this implicit `...any` type. (TODO verify what Lua does in this situation)
|
||||
First, the `...` symbol still needs to be unavailable for functions that have been given this implicit `...any` type. This is actually taken care of in the Luau parser, so no code change is required.
|
||||
|
||||
Secondly, we do not want to silently allow oversaturation of direct calls to a function if we know that the arguments will be ignored. We need to treat these variadic packs differently when unifying for function calls.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue