mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Update type-states.md
This commit is contained in:
parent
bf35b3e852
commit
c50ac75cd9
1 changed files with 1 additions and 2 deletions
|
@ -133,8 +133,7 @@ local function f(x: number | string)
|
|||
x = 5
|
||||
end
|
||||
|
||||
-- `x` is of type `number`
|
||||
-- `x` is of type `number | string`
|
||||
-- `x` should be of type `number`, but without control flow analysis, it will be of type `number | string`
|
||||
end
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue