mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Added comment about Instance.new
This commit is contained in:
parent
8c522788bd
commit
7819bf31c7
1 changed files with 9 additions and 0 deletions
|
@ -138,6 +138,15 @@ In this proposal, the type of `f(x)` can depend on the type of `x`, which may ca
|
||||||
|
|
||||||
There may be other devils in the details.
|
There may be other devils in the details.
|
||||||
|
|
||||||
|
Saturation on something like the type of `Instance.new` would be horrible
|
||||||
|
|
||||||
|
```lua
|
||||||
|
( ("Part") -> Part
|
||||||
|
& ("Folder") -> Folder
|
||||||
|
& ("Humanoid") -> Humanoid
|
||||||
|
& ... )
|
||||||
|
```
|
||||||
|
|
||||||
## Alternatives
|
## Alternatives
|
||||||
|
|
||||||
We could try applying fixes to the current algorithm, and live with constraint order mattering.
|
We could try applying fixes to the current algorithm, and live with constraint order mattering.
|
||||||
|
|
Loading…
Add table
Reference in a new issue