DeprecatedSymbolUsageFix: dealing with dropping arguments with potential side effects + stdlib's "let" has no receiver type bound

This commit is contained in:
Valentin Kipyatkov
2015-05-19 23:44:58 +03:00
parent 08cfca56f8
commit 5c445ca003
21 changed files with 369 additions and 35 deletions
+1 -1
View File
@@ -21,4 +21,4 @@ public inline fun <T, R> with(receiver: T, f: T.() -> R): R = receiver.f()
/**
* Converts receiver to body parameter
*/
public inline fun <T : Any, R> T.let(f: (T) -> R): R = f(this)
public inline fun <T, R> T.let(f: (T) -> R): R = f(this)