mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-04-04 18:41:00 +01:00
Update generic-constraints.md
fixed wording regarding the snippet of code that doesn't work
This commit is contained in:
parent
6b959dd236
commit
031ebc4288
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ local function callbackProperty<T>( object: T, key: keyof<T>, callback: (propert
|
||||||
....
|
....
|
||||||
```
|
```
|
||||||
This does not work in Luau.
|
This does not work in Luau.
|
||||||
> Ideally, this behaviour should work out of the box, but, could be solved with bounded polymorphism.
|
> Ideally, this behaviour should work out of the box, but, could be solved with updates to the type engine.
|
||||||
|
|
||||||
## Design
|
## Design
|
||||||
### Syntax
|
### Syntax
|
||||||
|
|
Loading…
Add table
Reference in a new issue