Skip to content

Extend cross-module coverage: boxed untyped-export with multiple methods - #264

Merged
ASDAlexander77 merged 1 commit into
mainfrom
test/untyped-multi-method-coverage
Jul 20, 2026
Merged

Extend cross-module coverage: boxed untyped-export with multiple methods#264
ASDAlexander77 merged 1 commit into
mainfrom
test/untyped-multi-method-coverage

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Summary

  • export_object_literal_untyped.ts only ever exercised a single method (inc()) on a boxed ObjectType cross-module import. This combination (boxed dynamic import + multiple method fields) was untested even after Fix cross-module multi-method vtable corruption via decl-text object-vs-tuple printing #263's decl-text printer fix, which is what actually makes multi-method fields round-trip correctly at all.
  • Adds export/import_object_literal_untyped_multi_method.ts: a 3-method (add/addTwice/scaled) untyped export, exercising both direct calls on the boxed global and an interface cast of it in the importer.

Test plan

  • Verified manually before adding as a permanent test: correct values end-to-end (3/7/14 direct calls, 7/8 via interface cast)
  • Full 736-test suite (734 existing + these 2 new): 100% pass, no regressions

🤖 Generated with Claude Code

export_object_literal_untyped.ts only ever exercised a single method (inc())
on a boxed ObjectType import. Adds a genuinely multi-method variant (add/
addTwice/scaled), covering both direct calls on the boxed global and an
interface cast of it - a combination only made correct by the decl-text
object-vs-tuple printer fix (#263), not previously tested. 736/736 suite.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ASDAlexander77
ASDAlexander77 merged commit eb74fce into main Jul 20, 2026
2 checks passed
@ASDAlexander77
ASDAlexander77 deleted the test/untyped-multi-method-coverage branch July 20, 2026 16:33
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