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
Refactor: extract shared helpers and reduce nesting
- Extract vm.isResolvedToGeneric() helper to replace duplicated
allGeneric checks in generic.lua, compiler.lua (3 locations)
- Extract findGenericInTableFields() and simplify
findGenericInExtendsTable() in sign.lua to reduce nesting
- Add changelog entries for generic resolution fixes
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: changelog.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@
6
6
*`CHG` Improved the output of test failures during development
7
7
*`FIX` Fix type inference for `x == nil and "default" or x` idiom [#2236](https://github.com/LuaLS/lua-language-server/issues/2236)
8
8
*`FIX` Fix type loss for assignments inside `if`/`for` blocks due to circular dependency in tracer [#2374](https://github.com/LuaLS/lua-language-server/issues/2374)[#2494](https://github.com/LuaLS/lua-language-server/issues/2494)
9
+
*`FIX` Resolve generic class method return types for `@param self list<T>` pattern
10
+
*`FIX` Fix `ipairs(self)` type resolution in generic class methods
0 commit comments