KT-1759 str.plus(str)

This commit is contained in:
Alex Tkachman
2012-04-28 08:09:02 +03:00
parent ebff94a632
commit 7b7987ba0d
3 changed files with 18 additions and 2 deletions
@@ -0,0 +1,11 @@
class Greeter(var name : String) {
fun greet() {
name = name.plus("")
System.out?.println("Hello, $name");
}
}
fun box() : String {
Greeter("OK").greet()
return "OK"
}