https://kotlinlang.org logo
k

Kroppeb

07/20/2020, 10:22 PM
I have a jave class with function
getResult():T
. Normally in kotlin I can then use
value.result
to get this value. However this doesn't seem to be possible with `expect`/`actual`. Am I missing something?
b

basher

07/20/2020, 10:27 PM
This is about satisfying an expect class's requirements for a
val result: T
with
getResult(): T
in Java and running into warnings?
k

Kroppeb

07/20/2020, 10:30 PM
It's a compile error it seems
Although I noticed my js code also uses
getResult()
so it"s not really needed anymore. I did add an extension property for ease of accessing
b

basher

07/20/2020, 10:31 PM
there are also KT links in the code comments above that line
s

saket

07/20/2020, 10:45 PM
TIL that’s possible
4 Views