Skip to content

Accept borrowing vtable entries in inheritance codegen tests - #802

Merged
ctate merged 1 commit into
mainfrom
ctate/accept-borrowing-vtable-d19c63
Oct 9, 2026
Merged

ctate merged 1 commit into
mainfrom
ctate/accept-borrowing-vtable-d19c63

Conversation

@ctate

@ctate ctate commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

tests/harness/inheritance.test.ts fails on main in three tests that pin vtable contents. When every implementation of a virtual slot borrows a parameter, the vtable now stores that implementation's borrowing body (@sc_bf_…) or its virtual adapter instead of the owned entry (@sc_f_…). These tests still required the owned spelling.

  • The three vtable patterns now accept the owned entry, the borrowing body, or the virtual adapter of the same implementation. They still check which class's method fills each slot, and nothing else about the tests changes.
  • inheritance.test.ts: 7/7 pass. Lint and format are clean.

🤖 Generated with Claude Code

Virtual slots whose implementations all borrow a parameter now store the
borrowing body (`@sc_bf_...`), or a virtual adapter, instead of the owned
entry (`@sc_f_...`). Three inheritance codegen tests still required the
owned entry. They now accept either entry for the same implementation,
so they keep checking which method fills each slot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
scriptc Ready Ready Preview, v0 Oct 9, 2026 6:40pm UTC

@ctate
ctate merged commit 28935d6 into main Oct 9, 2026
52 checks passed

This branch was successfully deployed

1 active deployment
Preview — 6ffcdf96 Deployed Oct 9, 2026 by vercel[bot]
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