Annotate Iterable.forEach and Map.forEach with HidesMembers.

#KT-10538 Fixed
#KT-10479 Fixed
This commit is contained in:
Ilya Gorbunov
2016-01-16 00:05:21 +03:00
parent 133155f4cc
commit 3d5e415c87
3 changed files with 3 additions and 0 deletions
@@ -1391,6 +1391,7 @@ public inline fun <T, R> List<T>.foldRight(initial: R, operation: (T, R) -> R):
/**
* Performs the given [action] on each element.
*/
@kotlin.internal.HidesMembers
public inline fun <T> Iterable<T>.forEach(action: (T) -> Unit): Unit {
for (element in this) action(element)
}