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
{{ message }}
Repository navigation
Re-check "members lost through a nil-subtracting generic in a loop" before filing it upstream #26
Upstream candidate, from myvi ticket 06 (2026-09-02, measured on 0.25.1 only):
---@classBox---@fieldwinteger---@returnBox[]localfunctiongrid() end---@genericT---@paramaT---@returnT -?localfunctionchk(a) returnaendforiinipairs(list) doprint(chk(grid()[i]).w) -- OK (inline)localc=chk(grid()[i])
print(c.w) -- undefined-field: w <- the bugend
The ticket's original premise ("generics can't subtract nil") turned out not to be a bug. This member loss is.
Next: run the repro on 0.25.1, upstream main and the installed fork. If upstream main still shows it, search for duplicates and prepare a draft for Marek. If the fork fixes it, note which commit. If neither shows it, close.
Re-checked 2026-11-17. Cannot reproduce on any build, including the original 0.25.1, so this won't be filed upstream.
The ticket's snippet is abbreviated: with no blank line between @class Box and @return Box[], the class attaches to grid. Current builds then report call-non-callable, which is an artifact of the snippet, not the bug. With blank lines added it is clean on 0.25.1, fork c6fd72f and upstream 2c400ee.
Real site: a scratch copy of myhypr with the ---@type my.Box workaround removed from my/feat/spread.lua:113, checked with myhypr's .emmyrc.json plus luagnd. No undefined-field at the site on 0.25.1 (35 other diagnostics, so it did run), the fork or upstream.
The control failing on 0.25.1 means today's code no longer triggers the September shape. Most likely luagnd's chk annotations changed since (the dual overload, 2026-09-02). So this proves the workaround is no longer needed. It does not prove an engine fix.
Closing. Dropping the workaround in myhypr separately.
Activity
mareklangiewicz commentedon Nov 17, 2026
Re-checked 2026-11-17. Cannot reproduce on any build, including the original 0.25.1, so this won't be filed upstream.
@class Boxand@return Box[], the class attaches togrid. Current builds then reportcall-non-callable, which is an artifact of the snippet, not the bug. With blank lines added it is clean on 0.25.1, fork c6fd72f and upstream 2c400ee.---@type my.Boxworkaround removed frommy/feat/spread.lua:113, checked with myhypr's.emmyrc.jsonplus luagnd. Noundefined-fieldat the site on 0.25.1 (35 other diagnostics, so it did run), the fork or upstream.chkannotations changed since (the dual overload, 2026-09-02). So this proves the workaround is no longer needed. It does not prove an engine fix.Closing. Dropping the workaround in myhypr separately.
AGENTS.md: deliberate entries cite evidence; 0.25.1 corpus leg; runna…