JVM_IR: support @JvmStatic transformations in LateinitLowering
#KT-46759 Fixed
This commit is contained in:
+5
-3
@@ -2,11 +2,13 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
object Test {
|
||||
@JvmStatic
|
||||
fun foo(x: String, y: String = "") = x + y
|
||||
fun foo(x: String, y: String = "") = x + value
|
||||
|
||||
var value = ""
|
||||
}
|
||||
|
||||
fun callFoo(f: (String) -> String, value: String) = f(value)
|
||||
|
||||
fun test() = Test
|
||||
fun test() = Test.apply { value = "K" }
|
||||
|
||||
fun box() = callFoo(Test::foo, "O") + callFoo(test()::foo, "K")
|
||||
fun box() = callFoo(Test::foo, "O") + callFoo(test()::foo, "")
|
||||
|
||||
Reference in New Issue
Block a user