Repository navigation
Commit 69a0541
authored
Preserve refinement on forward declared field reads (#325)
Closes #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.1 parent d620726 commit 69a0541
2 files changed
Lines changed: 21 additions & 0 deletions
File tree
- liquidjava-example/src/main/java/testSuite/classes/forward_field_read_correct
- liquidjava-verifier/src/main/java/liquidjava/processor/refinement_checker
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
324 | 328 | | |
325 | 329 | | |
326 | 330 | | |
| |||
0 commit comments