fixed bug: 'isStatement' for function body == 'hasBlockBody'

not vice versa
This commit is contained in:
Svetlana Isakova
2013-09-30 17:24:03 +04:00
parent fa8ca4e781
commit a3f9cef354
9 changed files with 25 additions and 9 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ public inline fun String.reverse(): String = StringBuilder(this).reverse().toStr
*
* @includeFunctionBody ../../test/StringTest.kt forEach
*/
public inline fun String.forEach(operation: (Char) -> Unit): Unit = for(c in this) operation(c)
public inline fun String.forEach(operation: (Char) -> Unit) { for(c in this) operation(c) }
/**
* Returns *true* if all characters match the given *predicate*