Skip to content

fix(interp): construct imported struct/class in provider module - #10707

Merged
ormastes merged 1 commit into
release/1.0.0from
work/interp-imported-ctor-20261121
Nov 21, 2026
Merged

ormastes merged 1 commit into
release/1.0.0from
work/interp-imported-ctor-20261121

Conversation

@ormastes

Copy link
Copy Markdown
Owner

try_construct_struct only searched the current module; a class declared in a provider module and constructed in an importing module failed with function 'X' not found (devhub messenger_db_readers_spec: MessengerReadPortV1). Struct/class owners are now recorded in fn_owner and construction retries in the owner's context.

Verified on native cli (release tip + #cli-build-unblock): native_transitive_ctor_spec ok; messenger_db_readers_spec port-value examples ok (2/2 before next, unrelated failure).

🤖 Generated with Claude Code

try_construct_struct only searched the current module, so a class declared
in a provider module and constructed in an importing module failed with
"function 'X' not found" (devhub messenger_db_readers_spec).
Record struct/class owners in fn_owner and retry in the owner's context.

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

@ormastes ormastes left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-review: diff limited to the listed files; verified on native cli build as described.

@ormastes
ormastes merged commit ffc6373 into release/1.0.0 Nov 21, 2026
3 of 4 checks passed
@ormastes
ormastes deleted the work/interp-imported-ctor-20261121 branch November 21, 2026 20:50
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