Mute without checks all diagnostic tests for tailrec since it's not supported in JS yet and it takes too much time when muted with checks
This commit is contained in:
committed by
Zalim Bashorov
parent
bde9f99d7c
commit
eda8749b91
+2
@@ -1,3 +1,5 @@
|
||||
// IGNORE_BACKEND_WITHOUT_CHECK: JS
|
||||
|
||||
tailrec fun String.repeat(num : Int, acc : StringBuilder = StringBuilder()) : String =
|
||||
if (num == 0) acc.toString()
|
||||
else repeat(num - 1, acc.append(this))
|
||||
|
||||
Reference in New Issue
Block a user