Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where uncurried type internals leak in type error. #6264

Merged
merged 1 commit into from
May 24, 2023

Conversation

cristianoc
Copy link
Collaborator

@cristianoc cristianoc commented May 24, 2023

Fixes #6263

  We've found a bug for you!
  tst.res:4:13-22

  23let foo = (x: array<_>) => ()
  4let x = foo(a => a + 1)
  5This has type: _ => _
  Somewhere wanted: array<'b>

@cristianoc cristianoc requested a review from ryyppy May 24, 2023 01:52
@cristianoc cristianoc added this to the v11.0 milestone May 24, 2023
@cristianoc cristianoc merged commit d7ec35f into master May 24, 2023
@cristianoc cristianoc deleted the fix_uncurried_type_error branch May 24, 2023 06:51
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.

Confusing type error when transforming from OCaml's stdlib Array to RescriptCore.Array
1 participant