mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-04 10:50:54 +01:00
Added drawback about breaking places where we might have incorrect type pointer identity checks
This commit is contained in:
parent
77ad1eda25
commit
9574acf7c7
1 changed files with 2 additions and 0 deletions
|
@ -52,3 +52,5 @@ Function type comparisons will ignore the argument names, this proposal doesn't
|
|||
Argument names require that we create unique function types even when these types are 'identical', so we can't compare types using pointer identity.
|
||||
|
||||
This is already the case in current Luau implementation, but it might reduce the optimization opportunities in the future.
|
||||
|
||||
There might also be cases of pointer identity checks that are currently hidden and named arguments might expose places where correct unification is required in the type checker.
|
||||
|
|
Loading…
Add table
Reference in a new issue