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

Implement static hashcode functions for scalar types #791

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

clydebarrow
Copy link
Contributor

It seems recent Kotlin versions are generating code that relies on the Java 1.8 static hashCode(x) functions which are not present in the libcore implementation, which results in "method not found" errors e.g. when using a data class with double members in a hashed collection.

This PR adds those functions for Double, Float, Long, Integer and Short.

@Tom-Ski Tom-Ski merged commit e6b0b4f into MobiVM:master Jun 13, 2024
1 check passed
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