568d4b11af
It should be enough to reproduce the issue and makes the test runnable on all backends
13 lines
186 B
Kotlin
Vendored
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" }()
|
|
}
|