mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-05-04 10:43:48 +01:00
Update docs/metatable-type-functions.md
Co-authored-by: ariel <aweiss@hey.com>
This commit is contained in:
parent
b88f14bf53
commit
d3f66f9fe3
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ type Identity = setmetatable<{
|
|||
```
|
||||
|
||||
When a non-table type (number, boolean) is passed into the type function, it should result in an error. This includes classes.
|
||||
If the type is an intersection/union of tables, then the metatable should be applied to every
|
||||
If the type is an intersection or union of tables, then the metatable should be applied to every component type.
|
||||
|
||||
### `getmetatable` Type Function
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue