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

bug with floats #24

Open
johnynek opened this issue Jul 24, 2019 · 1 comment
Open

bug with floats #24

johnynek opened this issue Jul 24, 2019 · 1 comment

Comments

@johnynek
Copy link

[error] /Users/oscar/stripe/agate/tests/src/test/scala/com/stripe/agate/tensor/Float16Test.scala:142:12: inferred type arguments [Float.type] do not conform to method render's type parameter bounds [A]
[error]       Claim(JFloat.compare(x.toFloat, shortBitsToFloat(x.raw)) == 0)
[error]            ^
[error] /Users/oscar/stripe/agate/tests/src/test/scala/com/stripe/agate/tensor/Float16Test.scala:142:13: type mismatch;
[error]  found   : Float.type
[error]  required: A
[error]       Claim(JFloat.compare(x.toFloat, shortBitsToFloat(x.raw)) == 0)

but removing the Claim works.

@johnynek
Copy link
Author

this is with java.lang.Float imported as JFloat.

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

No branches or pull requests

1 participant