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:
Dmitry Petrov
2020-03-18 10:58:08 +03:00
parent 897c48f97e
commit 1c24a97b9e
12 changed files with 159 additions and 20 deletions
@@ -0,0 +1,13 @@
// WITH_RUNTIME
class WithCompanion {
companion object {
@JvmStatic
fun foo(x: Int = 1) {}
}
}
object AnObject {
@JvmStatic
fun foo(x: Int = 1) {}
}