split FunctionGenTest.defaultArgs

This commit is contained in:
Stepan Koltsov
2012-02-09 22:25:19 +04:00
parent 6a8f2e14fb
commit 5c8fb3febf
7 changed files with 104 additions and 52 deletions
@@ -0,0 +1,16 @@
class C() {
fun Any.toMyPrefixedString(prefix: String = "", suffix: String="") : String = prefix + " " + suffix
fun testReceiver() : String {
val res : String = "mama".toMyPrefixedString("111", "222")
System.out?.println(res)
return res
}
}
fun box() : String {
if(C().testReceiver() != "111 222") return "fail"
return "OK"
}