claimant icon indicating copy to clipboard operation
claimant copied to clipboard

bug with floats

Open johnynek opened this issue 6 years ago • 1 comments

[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 avatar Jul 24 '19 00:07 johnynek

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

johnynek avatar Jul 24 '19 00:07 johnynek