I'm multiplatforming (and it seems to work!), but ...
# announcements
h
I'm multiplatforming (and it seems to work!), but I would like to declare an `expect`ed init block and can't seem to get the syntax right. Anyone care to give me an example or point me in the right direction?
k
#C3PQML5NU
But why do you want to specify this? Shouldn't that be part of the implementation? It's not like you can access
init
blocks, right?
h
I am constructing some Date/currentTimeMillis stuff.. And in a laaarge class where only two methods differ between js and jvm, I thought I could just
expect
some extension functions.
... but I can fix it otherwise.
k
Ah makes sense, easiest solution may be to write a function in the
expect
class and call that in the
actual
init
blocks.
h
Yeah, thanks. And haha! I already did ... 🙂
👍 1
k
Strangely I can't seem to find a youtrack issue for this.