1b553ebfaf
Added tests from testData/codegen/box directory. There are blackbox tests in other directories and they are to be added.
15 lines
349 B
Kotlin
15 lines
349 B
Kotlin
class MyString(var content : String)
|
|
|
|
object Greeter {
|
|
fun sayHello(name : String): String {
|
|
var result = MyString(name)
|
|
result += "K"
|
|
return result.content
|
|
}
|
|
}
|
|
|
|
private operator fun MyString.plus(suffix: String) : MyString = MyString("${this.content}$suffix")
|
|
|
|
fun box(): String {
|
|
return Greeter.sayHello("O")
|
|
} |