Use codegen box tests for tail calls as diagnostic tests too
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
tailRecursive fun String.repeat(num : Int, acc : StringBuilder = StringBuilder()) : String =
|
||||
if (num == 0) acc.toString()
|
||||
else repeat(num - 1, acc.append(this)!!)
|
||||
else repeat(num - 1, acc.append(this))
|
||||
|
||||
fun box() : String {
|
||||
val s = "a".repeat(10000)
|
||||
|
||||
Reference in New Issue
Block a user