Files
Sonya Valchuk 588549d1d0 JVM_IR: add offsets to JvmStatic and JvmOverloads proxies
KAPT3 needs them to correct error types in arguments.

 #KT-64639 Fixed
2024-01-02 17:43:09 +00:00

18 lines
469 B
Kotlin
Vendored

class State @JvmOverloads constructor(
val someInt: Int,
val someLong: Long,
val someString: String = ""
)
class State2 @JvmOverloads constructor(
@JvmField val someInt: Int,
@JvmField val someLong: Long = 2,
@JvmField val someString: String = ""
) {
@JvmOverloads
fun test(someInt: Int, someLong: Long = 1, someString: String = "A"): Int = 5
fun someMethod(str: String) {}
fun methodWithoutArgs() {}
}