split FunctionGenTest.defaultArgs
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user