KT-36972 Don't create proxies for companion @JvmStatic $default in host
When creating proxy functions in a host class for @JvmStatic members of companion object, skip functions for default parameters handling.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
|
||||
class Host {
|
||||
companion object {
|
||||
@JvmStatic
|
||||
fun foo(s: String = "OK") = s
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String = Host.foo()
|
||||
@@ -0,0 +1,9 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// WITH_RUNTIME
|
||||
|
||||
object Host {
|
||||
@JvmStatic
|
||||
fun foo(s: String = "OK") = s
|
||||
}
|
||||
|
||||
fun box(): String = Host.foo()
|
||||
Reference in New Issue
Block a user