Deprecate tailRecursive in favor of tailrec

This commit is contained in:
Denis Zharkov
2015-09-04 16:30:25 +03:00
parent bbc192fda5
commit 9254b1b461
84 changed files with 98 additions and 92 deletions
@@ -1,6 +1,6 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
tailRecursive fun withWhen(counter : Int, d : Any) : Int =
tailrec fun withWhen(counter : Int, d : Any) : Int =
when (counter) {
0 -> counter
1, 2 -> withWhen(counter - 1, "1,2")