Skip to content

Fix arity detection for arrows returning nested generics#8064

Merged
cknitt merged 4 commits into
rescript-lang:masterfrom
cknitt:fix-arity-detection
Dec 6, 2025
Merged

Fix arity detection for arrows returning nested generics#8064
cknitt merged 4 commits into
rescript-lang:masterfrom
cknitt:fix-arity-detection

Conversation

@cknitt

@cknitt cknitt commented Dec 6, 2025

Copy link
Copy Markdown
Member

Fixes #8055

@cknitt
cknitt requested a review from cristianoc December 6, 2025 09:23
@pkg-pr-new

pkg-pr-new Bot commented Dec 6, 2025

Copy link
Copy Markdown

Open in StackBlitz

rescript

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

@rescript/darwin-arm64

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

@rescript/darwin-x64

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

@rescript/linux-arm64

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

@rescript/linux-x64

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

@rescript/runtime

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

@rescript/win32-x64

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

commit: d1f7683

@cristianoc cristianoc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Aha it was a parsing issue

@cknitt
cknitt force-pushed the fix-arity-detection branch from 067e509 to d1f7683 Compare December 6, 2025 10:29
@cknitt
cknitt merged commit cad989f into rescript-lang:master Dec 6, 2025
25 checks passed
@cknitt
cknitt deleted the fix-arity-detection branch December 6, 2025 15:53
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.

v12 regression: explicitly annotated option return type with non-primative inner type causes compiler error

2 participants