sid
05/07/2026, 5:09 PM@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 constructorephemient
05/07/2026, 5:21 PM@OptionalExpectation
public expect annotation class JvmOverloads()
in kotlin stdlib common so it can be appliedephemient
05/07/2026, 5:21 PMsid
05/07/2026, 5:22 PMyou may need to explicitly import it though (edited)hmmmm nice catch. hope it works. lemme try
sid
05/07/2026, 5:33 PMimport it, it works just fine. Once a comment it out, unresolved reference. Thank you, @ephemient. I appreciate