Skip to content

Preserve refinement on forward declared field reads - #325

Open
rcosta358 wants to merge 1 commit into
mainfrom
codex/issue-316-field-read
Open

rcosta358 wants to merge 1 commit into
mainfrom
codex/issue-316-field-read

Conversation

@rcosta358

Copy link
Copy Markdown
Collaborator

Fixes #316.

Reads of fields in later declared classes now use the field's refinement when it is not yet in context. Adds a regression example.

Tests: ./mvnw -pl liquidjava-verifier -am -Dtest=TestExamples -Dsurefire.failIfNoSpecifiedTests=false test (197 passed).

This PR was generated by Codex.

@rcosta358 rcosta358 changed the title Preserve refinement on forward declared field reads (fix #316) Preserve refinement on forward declared field reads Oct 2, 2026

@CatarinaGamboa CatarinaGamboa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

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.

Reading a field of a class declared later in the file loses its refinement

2 participants