mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-03 18:30:54 +01:00
Update rfcs/recursive-type-restriction.md
Co-authored-by: Alan Jeffrey <403333+asajeffrey@users.noreply.github.com>
This commit is contained in:
parent
32591847c4
commit
c7d808aee8
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
## Motivation
|
||||
|
||||
Luau supports reclusive type aliases, but with an important restriction:
|
||||
Luau supports recursive type aliases, but with an important restriction:
|
||||
users can declare functions of recursive types, such as:
|
||||
```lua
|
||||
type Tree<a> = { data: a, children: {Tree<a>} }
|
||||
|
|
Loading…
Add table
Reference in a new issue