Clean TODOs and commented code which works.

This commit is contained in:
Ilya Ryzhenkov
2014-03-05 20:33:13 +04:00
committed by Andrey Breslav
parent 266f6ad81a
commit fb7034a472
6 changed files with 21 additions and 23 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ public fun <T> assertNotNull(actual: T?, message: String = ""): T {
return actual!!
}
//TODO merge with next via default
//TODO merge with next via default (currently inline functions do not support default values)
/** Asserts that the expression is not null, with an optional message and a function block to process the not-null value */
public inline fun <T, R> assertNotNull(actual: T?, block: (T) -> R) {
assertNotNull(actual, "", block)