Update generic-constraints.md

fixed wording regarding the snippet of code that doesn't work
This commit is contained in:
Kiiyoko 2024-12-13 23:51:10 -05:00 committed by GitHub
parent 6b959dd236
commit 031ebc4288
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,7 @@ local function callbackProperty<T>( object: T, key: keyof<T>, callback: (propert
....
```
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
### Syntax