Skip to content

Extend interface extends coverage to 3-target extends clauses#270

Merged
ASDAlexander77 merged 1 commit into
mainfrom
test/extends-interface-triple-target
Jul 20, 2026
Merged

Extend interface extends coverage to 3-target extends clauses#270
ASDAlexander77 merged 1 commit into
mainfrom
test/extends-interface-triple-target

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Summary

PR #268 fixed interface Combined extends Left, Right (2 extends targets) — a vtable-offset bug that mis-patched every method from the second extends target onward. That PR's own coverage only tested 2 targets; this adds a cross-module test with 3 (interface Combined extends A, B, C) to stress the offset-accumulation logic one level further and confirm it generalizes past N=2, not just fixes the specific 2-target case.

Test plan

  • New cross-module regression test export/import_object_literal_structural_typed_extends_interface_triple.ts (compile + JIT) — verified correct for all 4 members (one from each of the 3 extends targets, plus Combined's own)
  • Full 752-test suite: 100% pass (one flaky failure on test-compile-00-objects under -j 16 parallel execution reproduced only once and passed cleanly both in isolation and on a full rerun — not related to this change)

🤖 Generated with Claude Code

Adds a cross-module test pair for `interface Combined extends A, B, C`
to stress the vtable-offset accumulation and extends-dedup guard from
PR #268 (which only had 2-target diamond coverage) at N=3. Verified
via live debug trace that the fix generalizes correctly; full
extends-interface test family (12 tests) passes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ASDAlexander77
ASDAlexander77 merged commit 68b47f3 into main Jul 20, 2026
4 checks passed
@ASDAlexander77
ASDAlexander77 deleted the test/extends-interface-triple-target branch July 20, 2026 21:45
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