Temporary add jvm.overloads annotation for generated joinToString() method.

Stdlib generator: allow to specify arbitrary annotations for all or some of generic function expansions.
This commit is contained in:
Ilya Gorbunov
2015-04-22 21:43:57 +03:00
parent d531d7130f
commit 16d20ff009
4 changed files with 25 additions and 0 deletions
@@ -338,6 +338,7 @@ public fun ShortArray.joinToString(separator: String = ", ", prefix: String = ""
* If the collection could be huge, you can specify a non-negative value of [limit], in which case only the first [limit]
* elements will be appended, followed by the [truncated] string (which defaults to "...").
*/
kotlin.jvm.overloads
public fun <T> Iterable<T>.joinToString(separator: String = ", ", prefix: String = "", postfix: String = "", limit: Int = -1, truncated: String = "...", transform: ((T) -> String)? = null): String {
return joinTo(StringBuilder(), separator, prefix, postfix, limit, truncated, transform).toString()
}