Skip to content

selfhost: port overload matching policy to Flow - #709

Merged
godofecht merged 2 commits into
mainfrom
selfhost/overload-resolution-core
Aug 22, 2026
Merged

godofecht merged 2 commits into
mainfrom
selfhost/overload-resolution-core

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Continues #677 after the compatibility-core port.

Moves the deterministic overload matching policy into compiler/src/overload.flow: textual-exact vs compatible argument classification, the second-pass unsuffixed integer literal widening rule, unique/no-match/ambiguous candidate-count decision, and sole-overload fallback policy for unknown argument types.

Production function registration and expression-type inference remain on the Python AST boundary for now; this PR deliberately moves only logic that does not require inventing a Stage-A/production-AST adapter.

Extends tests/lang/test_overload_port.flow with coverage for exact/compatible/widened/no-match ranks, phase ordering, ambiguity, and sole-overload fallback semantics.

Related: #674 #677

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