mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-19 03:03:49 +01:00
Update typecheck.md
This commit is contained in:
parent
2d641976ee
commit
8d712c47b6
1 changed files with 2 additions and 0 deletions
|
@ -190,6 +190,8 @@ local numbers: Pair<number> = {first=1, second=2}
|
||||||
|
|
||||||
## Generic functions
|
## Generic functions
|
||||||
|
|
||||||
|
**WARNING** Generic functions are currently disabled as we're fixing some critical bugs.
|
||||||
|
|
||||||
As well as generic type aliases like `Pair<T>`, Luau supports generic functions. These are functions that, as well as their regular data parameters, take type parameters. For example, a function which reverses an array is:
|
As well as generic type aliases like `Pair<T>`, Luau supports generic functions. These are functions that, as well as their regular data parameters, take type parameters. For example, a function which reverses an array is:
|
||||||
```lua
|
```lua
|
||||||
function reverse(a)
|
function reverse(a)
|
||||||
|
|
Loading…
Add table
Reference in a new issue