Files
kotlin-fork/compiler/testData/codegen/box/unit/kt51036.kt
T
Ilya Gorbunov 568d4b11af Use 'run' function instead of 'synchronized' in KT-51036 test
It should be enough to reproduce the issue and makes the test runnable on all backends
2023-05-04 02:44:26 +00:00

13 lines
186 B
Kotlin
Vendored

// WITH_STDLIB
fun box(): String {
A().close()
return "OK"
}
class A {
companion object;
operator fun String.invoke() = Unit
fun close() = kotlin.run { "abc" }()
}