Sylvain Patenaude
12/03/2019, 10:24 PMpackage toto.toto2
@ExperimentalUnsignedTypes
fun UByteArray.toUnsignedInt(): UInt {
return ...
}
When I try to call it from inside an object
, like this: myUInt = myUByteArray.toUnsignedInt()
, I have an Unresolved reference.
Thanks in advance!Alexey Belkov [JB]
12/04/2019, 11:38 AMpackage toto.toto2
@ExperimentalUnsignedTypes
fun UByteArray.toUnsignedInt(): UInt {
TODO()
}
object O {
val myUByteArray: UByteArray = ubyteArrayOf(0u)
val myUInt = myUByteArray.toUnsignedInt()
}
Can you please share a self-contained example to reproduce?Sylvain Patenaude
12/04/2019, 2:48 PM