JET-34 Require a return statement in a function with a block body
JET-77 Require a return type annotation for non-Unit returning functions with block bodies
This commit is contained in:
@@ -3,5 +3,5 @@ fun concat(l: Array<String>): String? {
|
||||
for(s in l) {
|
||||
sb.append(s)
|
||||
}
|
||||
sb.toString()
|
||||
return sb.toString()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user