Skip to content

Fix incorrect type signatures in Array #50

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

Merged
merged 3 commits into from
Feb 18, 2023

Conversation

glennsl
Copy link
Contributor

@glennsl glennsl commented Feb 18, 2023

Unless I'm misunderstanding something, these type signatures shouldn't be unsoundly typed, that is, the return type shouldn't be independent of the input argument types.

Copy link
Collaborator

@zth zth left a comment

Choose a reason for hiding this comment

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

Good catch, thank you! This looks like an oversight. Would you add an entry to the changelog too?

@glennsl
Copy link
Contributor Author

glennsl commented Feb 18, 2023

Can do. I'm unsure of the format of the changelog though. Should I just put this under the API Changes heading?

- Fixed type signatures of `Array.fromArrayLikeWithMap` and `Array.fromIteratorWithMap`. https://github.com/rescript-association/rescript-core/pull/50

@zth
Copy link
Collaborator

zth commented Feb 18, 2023

Yes, that'll be good.

@glennsl glennsl force-pushed the fix/array/incorrect-signatures branch from 95ec750 to bd98650 Compare February 18, 2023 17:15
@zth zth merged commit b1cc1af into rescript-lang:main Feb 18, 2023
@glennsl glennsl deleted the fix/array/incorrect-signatures branch February 18, 2023 17:27
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.

2 participants