Skip to content

Hint in error for string constants matching expected variant - #7711

Merged
zth merged 3 commits into
masterfrom
error-message-string-constants
Jul 24, 2025
Merged

Hint in error for string constants matching expected variant#7711
zth merged 3 commits into
masterfrom
error-message-string-constants

Conversation

@zth

@zth zth commented Jul 24, 2025

Copy link
Copy Markdown
Member

This error is helpful when going from a string to something more typed (variant/polyvariant).

…ething that expects a variant/polyvariant, and that string constant matches one of the constructors
@zth
zth requested review from cknitt, cristianoc and tsnobip July 24, 2025 18:58
@pkg-pr-new

pkg-pr-new Bot commented Jul 24, 2025

Copy link
Copy Markdown

Open in StackBlitz

rescript

npm i https://pkg.pr.new/rescript-lang/rescript@7711

@rescript/darwin-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-arm64@7711

@rescript/darwin-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/darwin-x64@7711

@rescript/linux-arm64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-arm64@7711

@rescript/linux-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/linux-x64@7711

@rescript/win32-x64

npm i https://pkg.pr.new/rescript-lang/rescript/@rescript/win32-x64@7711

commit: aceafb9

@zth
zth merged commit 7953354 into master Jul 24, 2025
27 checks passed
@github-actions
github-actions Bot deleted the error-message-string-constants branch February 27, 2026 00:23
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.

3 participants