Hey Is there a way to workaround the `@JvmOverload...
# multiplatform
s
Hey Is there a way to workaround the
@JvmOverloads
in a multiplatform library with Apple (iOS, macOS, watchOS) and JVM targets? I just added Apple targets in my compilation and the compiler is now complaining about
@JvmOverloads
being an
unresolved reference
. I didn't want to write all possible constructors one by one to support the jvm. My constructor
e
hmm that doesn't sound right, it's a
Copy code
@OptionalExpectation
public expect annotation class JvmOverloads()
in kotlin stdlib common so it can be applied
you may need to explicitly import it though
s
you may need to explicitly import it though (edited)
hmmmm nice catch. hope it works. lemme try
Yes. If I
import
it, it works just fine. Once a comment it out,
unresolved reference
. Thank you, @ephemient. I appreciate