Skip to content

Conversation

@Frotty
Copy link
Member

@Frotty Frotty commented Dec 11, 2025

No description provided.

Copy link

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

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.

ℹ️ 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".

Comment on lines 208 to 209
for (ImClass c : prog.getClasses()) {
c.getFields().removeIf(f -> isGenericType(f.getType()));

Choose a reason for hiding this comment

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

P1 Badge Generic globals remain in output

After specialization we still retain the original generic static fields in prog.getGlobals(): removeGenericConstructs now only strips generic functions/methods/classes and generic fields, but no longer removes the globals identified in identifyGenericGlobals. Because collectGenericUsages.visit(ImVar) explicitly skips globals, those variables keep their ImTypeVarRefs and nothing rewrites or replaces them. Any generic class/module with static thistype fields (e.g. the new linked list module) will therefore leave an unspecialized global definition in the final program, reintroducing type variables into the backend output.

Useful? React with 👍 / 👎.

@Frotty Frotty merged commit 1d088f6 into master Dec 11, 2025
4 checks passed
@Frotty Frotty deleted the new-generic-with-module branch December 11, 2025 18:33
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.

2 participants