Fix recusrive calls in infix and prefix form
The infamous invokeOperation() method removed
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fun String.plus() : String {
|
||||
if (this == "") {
|
||||
return "done"
|
||||
}
|
||||
return +""
|
||||
}
|
||||
|
||||
fun box() : String = if (+"11" == "done") "OK" else "FAIL"
|
||||
Reference in New Issue
Block a user