Files
kotlin-fork/compiler/testData/codegen/regressions/kt1953.kt
T
Dmitry Jemerov 5b987ccc15 when calling function stored in local variable as unary operation, don't forget to push function instance (KT-1953)
I'm sure that there are similar cases that still don't work;  please let me know if you find any
#KT-1953 fixed
2012-06-06 17:17:44 +02:00

10 lines
143 B
Kotlin

fun box(): String {
val sb = StringBuilder()
fun String.plus() {
sb.append(this)
}
+"OK"
return sb.toString()!!
}