Skip to content

Backlog: drop the Lua defects #1510 and #1512 fixed, run their stale exemptions on Lua - #1513

Merged
Frotty merged 3 commits into
masterfrom
backlog-lua-reconcile
Oct 21, 2026
Merged

Frotty merged 3 commits into
masterfrom
backlog-lua-reconcile

Conversation

@Frotty

@Frotty Frotty commented Oct 21, 2026

Copy link
Copy Markdown
Member

Master CI is red since #1512: with -PallBackends the Ubuntu job fails on GenericsWithTypeclassesTests.arrayListInClosure, whose KNOWN_LUA_DEFECT exemption is stale (the test passes on Lua now). Behind it, TypeClassTests.classBoundWithIndependentMethodTypeParam has a stale CLASS_AND_METHOD_TYPE_PARAMS exemption too. Both tests now run on Lua (testLua(true).luaOnly(false)).

BACKLOG.md

  • Removed the entries Type a method call on an inherited generic method with the superclass's type arguments #1510 and Lua: allocate an instantiation whose members need its type argument from its specialised class #1512 fixed: lua-static-erased, lua-bound-unresolved, lua-closure-receiver, lua-new-instance-unresolved, lua-new-instance-erased, lua-field-split, lua-tuple-subclass, lua-tuple-elimination-crash, the tuple-constructed static and the static split by a constant argument.
  • lua-instanceof-erased now covers only closures, which are the 9 cases genericSpecialisationMatrix-knownFailures.txt still lists, with a repro checked to fail on Lua and pass on Jass.
  • New entry: the IM interpreter ignores the type arguments of instanceof (EvaluateExpr.eval(ImInstanceof) asks ProgramState.isInstanceOf about the class alone). Before the transformations, m instanceof Box<T> with T = int is true for a Box<string>, even where both backends answer false. The backend tests use executeProgOnlyAfterTransforms(), which skips that run.

The tuple-static and shared-static repros were re-run on master and pass.

Tests

Run with -PallBackends on Windows (bundled Lua 5.3): GenericsWithTypeclassesTests 119, TypeClassTests 72, LuaTranslationTests 154, OptimizerTests 179, CompiletimeTests 50, InterpreterTests 29, LuaExemptionTests 6. These are all the classes that carry a Lua exemption. The full suite was not run with -PallBackends, and pull-request CI does not run Lua for every test, so master CI after the merge is the first full check.

Open

AGENTS.md §9 still says Lua support for a method combining class and method type parameters is not promised, and LuaExemption.CLASS_AND_METHOD_TYPE_PARAMS has no use left. Both are unchanged here.

…exemptions on Lua

#1512 made arrayListInClosure and classBoundWithIndependentMethodTypeParam pass on Lua, so the
master CI run with -PallBackends failed on their exemptions. Both now run on Lua.

BACKLOG.md loses the lua-static-erased, lua-bound-unresolved, lua-closure-receiver,
lua-new-instance-unresolved, lua-new-instance-erased, lua-field-split, lua-tuple-subclass and
lua-tuple-elimination-crash entries and the two static entries those exemptions cited, keeps
lua-instanceof-erased for closures only (the cases the matrix still lists), and records that the
interpreter ignores the type arguments of instanceof.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T08:16:32.422735Z 33ed43d Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aa352ebb6d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…wn on Lua

#1512 made TypeClassTests.classBoundWithIndependentMethodTypeParam pass on Lua, and the test now runs
there, so section 9 says the shape is supported instead of not promised. Generic construction inside
such a method stays uncovered, so the advice for serialization loaders remains.

LuaExemption.CLASS_AND_METHOD_TYPE_PARAMS had no use left; it goes, with its TRANSLATION_ERROR kind.
@Frotty

Frotty commented Oct 21, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 33ed43d719

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Frotty
Frotty merged commit eb49b7b into master Oct 21, 2026
2 checks passed
@Frotty
Frotty deleted the backlog-lua-reconcile branch November 25, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant