Skip to content

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

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

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

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Summary

  • Adds a cross-module test pair (export/import_object_literal_structural_typed_extends_interface_triple.ts) for interface Combined extends A, B, C — a 3-target extends clause.
  • Stresses the vtable-offset accumulation (getAllMethodsWithVTableOffset) and extends-dedup guard fixed in Fix cross-module diamond-extends interface silently corrupting data #268, which only had 2-target diamond (extends A, B) coverage. Confirms the fix generalizes to N targets, not just 2.
  • Registered as test-compile-shared-...-extends-interface-triple and test-jit-shared-...-extends-interface-triple in test/tester/CMakeLists.txt.

Test plan

  • ctest -R "extends-interface" — full 12-test family passes 100% (includes the 2 new triple tests alongside existing single/multilevel/diamond variants)
  • Verified via a temporary debug trace that the extends-dedup guard correctly stabilizes at 3 entries across repeated interface-declaration visits (no duplication), then removed the instrumentation before committing

🤖 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 9f27f6a into main Jul 20, 2026
4 checks passed
@ASDAlexander77
ASDAlexander77 deleted the test-triple-extends-interface branch July 20, 2026 21:43
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