Skip to content

Conversation

@Frotty
Copy link
Member

@Frotty Frotty commented Dec 12, 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 +16 to +23
@Override
public String print() {
return "";
}

@Override
public boolean isEqualTo(ILconst other) {
return false;

Choose a reason for hiding this comment

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

P1 Badge Implement equality/print for type reference constants

The new ILconstTypeRef always returns an empty string from print() and false from isEqualTo(...) (lines 16‑23), so any compile‑time evaluation that produces an ImTypeRef will yield a constant that can never compare equal even when the underlying class types match. This breaks basic semantics for expressions that compare or store type references (e.g. type‑keyed maps or equality checks in compile‑time functions) and will cause all such comparisons to return false. It should compare the wrapped ImClassType and render a meaningful value instead of hard‑coding failure.

Useful? React with 👍 / 👎.

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