Revert "Drop deprecated toGenerator and toLinkedList." until RC

This commit is contained in:
Ilya Gorbunov
2015-11-29 04:30:31 +03:00
parent f8fe3e6c1d
commit 941167e241
6 changed files with 121 additions and 0 deletions
@@ -110,6 +110,13 @@ fun snapshots(): List<GenericFunction> {
body { "return this.toArrayList()" }
}
templates add f("toLinkedList()") {
include(Strings)
doc { "Returns a [LinkedList] containing all elements." }
returns("LinkedList<T>")
deprecate { Deprecation("Use toCollection(LinkedList()) instead.", replaceWith = "toCollection(LinkedList())") }
}
templates add f("toMap(selector: (T) -> K)") {
inline(true)
deprecate(Strings) { forBinaryCompatibility }