https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
l

leandro

09/01/2019, 5:51 PM
Anyone writing multiplatform/common classes with Dagger’s
@Inject
on it? Since it’s a JVM-only type, so I tried to create my own
Inject
with
@OptionalExpectation
on it, but can’t seem to figure out the
actual
for it.
d

Dominaezzz

09/01/2019, 5:58 PM
It should look the same as
@JvmName
. You can look at that for inspiration.
j

jw

09/01/2019, 6:50 PM
it should just be
actual typealias Inject = javax.inject.Inject
l

leandro

09/01/2019, 8:10 PM
That work, thank you both
3 Views