Can I `expect` only two methods out of fourteen in...
# multiplatform
h
Can I
expect
only two methods out of fourteen in a class? Seems I must `expect`the whole class, and I cannot then have
actual
implementations inside the same code, but need to implement all fourteen functions as
actual
functions in my JS and JVM specific packages. (I tried using extension functions, but Java doesn't recognize those, so to no avail. Another solution is to have the two functions call some other function that could be marked with
expect
and that one could live outside of the class. But what I really would like the most, and find most intuitive, is being able to `expect`only some of the functions in a class, just like we do with abstract classes.
r
There’s this issue that I think would allow what you want: https://youtrack.jetbrains.com/issue/KT-20427