Running into an issue where a value class can seem...
# getting-started
m
Running into an issue where a value class can seemingly become null, weirdly enough it's something defined on a value class as
BigNum(doubleArrayOf(1.0, Double.NaN))
Is this a known issue, and if so, how do I fix it?
k
I don't know but just an FYI: your equals class is not symmetric and therefore may give problems in some situations, where if
b
is a
BigNum
and
n
is a
Number
with equivalent value, then
b.equals(n)
is true but
n.equals(b)
is false.