JET-121 Extension closure scope, empty?
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
fun box() : String {
|
||||
val answer = apply("OK", { String.() : Int =>
|
||||
length()
|
||||
length
|
||||
})
|
||||
|
||||
return if (answer == 2) "OK" else "FAIL"
|
||||
|
||||
Reference in New Issue
Block a user