Kroppeb

    Kroppeb

    2 years ago
    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

    2 years ago
    This is about satisfying an expect class's requirements for a
    val result: T
    with
    getResult(): T
    in Java and running into warnings?
    Kroppeb

    Kroppeb

    2 years ago
    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

    2 years ago
    there are also KT links in the code comments above that line
    saket

    saket

    2 years ago
    TIL that’s possible