Hi All; I am playing with bitwise maths, and accor...
# getting-started
a
Hi All; I am playing with bitwise maths, and according to the documentation I think that I should be able to do this, but I can't:
Copy code
>>> val b = 42.toByte()
>>> b
res10: kotlin.Byte = 42
>>> b.and(b)
error: unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public inline infix fun BigInteger.and(other: BigInteger): BigInteger defined in kotlin
b.and(b)
Can anyone please point out my misapprehension? [info: kotlinc-jvm 1.4.10 (JRE 14.0.1+14)]