Skip to content

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
Member

@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
Member

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