mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Update docs/_posts/2022-11-30-luau-recap-november-2022.md
Co-authored-by: Andy Friesen <andy.friesen@gmail.com>
This commit is contained in:
parent
3a47529d7c
commit
eb12d3fb24
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ function unwrap<T>(r: Result<T>): T?
|
|||
end
|
||||
```
|
||||
|
||||
For better inference, we updated definition of `Enum.SomeType:GetEnumItems()` to return `{Enum.SomeType}` instead of common `{EnumItem}` and the return type of `next` function now includes the possibility of key being `nil`.
|
||||
For better inference, we updated the definition of `Enum.SomeType:GetEnumItems()` to return `{Enum.SomeType}` instead of common `{EnumItem}` and the return type of `next` function now includes the possibility of key being `nil`.
|
||||
|
||||
Finally, if you use `and` operator on non-boolean values, `boolean` type will no longer be added by the type inference:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue