Deprecate toGenerator and toLinkedList extensions.

This commit is contained in:
Ilya Gorbunov
2015-10-29 20:54:06 +03:00
parent 0997f78764
commit 3a82225201
6 changed files with 26 additions and 13 deletions
@@ -90,7 +90,7 @@ fun snapshots(): List<GenericFunction> {
templates add f("toLinkedList()") {
doc { "Returns a [LinkedList] containing all elements." }
returns("LinkedList<T>")
body { "return toCollection(LinkedList<T>())" }
deprecate { Deprecation("Use toCollection(LinkedList()) instead.", replaceWith = "toCollection(LinkedList())") }
}
templates add f("toMap(selector: (T) -> K)") {