1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
15 lines
240 B
Kotlin
15 lines
240 B
Kotlin
class A {
|
|
private val sb: StringBuilder = StringBuilder()
|
|
|
|
operator fun String.unaryPlus() {
|
|
sb.append(this)
|
|
}
|
|
|
|
fun foo(): String {
|
|
+"OK"
|
|
return sb.toString()!!
|
|
}
|
|
}
|
|
|
|
fun box(): String = A().foo()
|