Skip to content

Fix instantiated string interpolation constraints#10160

Merged
rtfeldman merged 1 commit into
mainfrom
issue-10109-interpolation-metadata
Jul 17, 2026
Merged

Fix instantiated string interpolation constraints#10160
rtfeldman merged 1 commit into
mainfrom
issue-10109-interpolation-metadata

Conversation

@rtfeldman

Copy link
Copy Markdown
Contributor

Fixes #10109 by making interpolation constraint metadata own each part’s type variable and source region. Instantiation now remaps part variables while preserving their use-site regions, and both builtin and custom interpolation checks consume that metadata so polymorphic interpolation reports the instantiated type mismatch at the interpolation expression.

@rtfeldman
rtfeldman marked this pull request as ready for review July 17, 2026 16:42
@rtfeldman
rtfeldman merged commit c7316cc into main Jul 17, 2026
12 checks passed
@rtfeldman
rtfeldman deleted the issue-10109-interpolation-metadata branch July 17, 2026 16:42
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.

roc check silently accepts interpolating a List into a string in an unannotated function; specializing it segfaults the compiler

1 participant