Skip to content

fix: use getAllInterfaceFields in variable-allocator interface field lookups#119

Merged
cs01 merged 2 commits intomainfrom
fix/varalloc-getAllInterfaceFields
Mar 8, 2026
Merged

fix: use getAllInterfaceFields in variable-allocator interface field lookups#119
cs01 merged 2 commits intomainfrom
fix/varalloc-getAllInterfaceFields

Conversation

@cs01
Copy link
Copy Markdown
Owner

@cs01 cs01 commented Mar 8, 2026

Summary

  • getMemberAccessInterfaceType: use getAllInterfaceFields instead of direct .fields access so inherited interface fields are included in type resolution
  • getInterfaceFieldTypeByName: same fix for the by-name field type lookup

Both changes use for...of as required by CLAUDE.md loop style.

Note: getUnionCommonFields was also attempted but caused a Stage 1 self-hosting crash (same root cause as the class.ts revert in #118 — the interfaces stored in that context use a different GEP layout than InterfaceDeclaration). Left unchanged.

Test plan

  • All 428 unit tests pass
  • Self-hosting quick check passes (Stage 0 → Stage 1)

@cs01 cs01 merged commit e1e8eba into main Mar 8, 2026
12 checks passed
@cs01 cs01 deleted the fix/varalloc-getAllInterfaceFields branch March 9, 2026 04:16
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