You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have reached release 700!
# Analysis
* `table.isfrozen` and `table.clear` use `{}` instead of generic table
type to make it work with union of table types.
* Relax typing definitions for `types.newtable` to make it easier to
specify read-only table properties
* Do not drop explicit generic type packs. Hopefully fixes#2075
* Added protection against stack overflows to more spots in `Unifier2`
* Improved bidirectionally inferring lambdas. When performing inference
on a lambda, check _right_ before we attempt to emplace a free type
whether there's a generic.
* Reworked overload resolution interface.
`OverloadResolver::resolveOverload` was introduced to abstract and unify
existing resolving machinery.
* `instantiation2` selects more useful bounds.
- If we have positive or negative polarity, blindly use the upper/lower
bounds respectively.
- Otherwise, attempt to find a reasonable bound by first avoiding
picking `never` or `unknown`, then doing a subtype test to try to pick a
tight bound.
* Added protection against stack overflows to the non-strict type
checker
* Luau-syntax configuration extraction can now be timed out during
analysis. See `CLI/src/Analyze.cpp` for an example.
# Require
* Support chained aliases with built-in cycle detection:
luau-lang/rfcs#145.
* ResolveJohnnyMorganz/luau-lsp#1246.
# Autocomplete
* Do not recommend generic types for anonymous functions being passed as
arguments
---
Co-authored-by: Andy Friesen <[email protected]>
Co-authored-by: Annie Tang <[email protected]>
Co-authored-by: Ariel Weiss <[email protected]>
Co-authored-by: Hunter Goldstein <[email protected]>
Co-authored-by: Varun Saini <[email protected]>
0 commit comments