Replace annotations with brackets in testData
Just in tests that changed after deprecation
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ tailRecursive fun badTails(x : Int) : Int {
|
||||
return 1 + <!NON_TAIL_RECURSIVE_CALL!>badTails<!>(x - 1)
|
||||
}
|
||||
else if (x == 10) {
|
||||
[suppress("NON_TAIL_RECURSIVE_CALL")]
|
||||
@suppress("NON_TAIL_RECURSIVE_CALL")
|
||||
return 1 + badTails(x - 1)
|
||||
} else if (x >= 50) {
|
||||
return badTails(x - 1)
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
fun test() {
|
||||
[tailRecursive] fun g3(counter : Int) {
|
||||
@tailRecursive fun g3(counter : Int) {
|
||||
if (counter > 0) { g3(counter - 1) }
|
||||
}
|
||||
g3(1000000)
|
||||
|
||||
Reference in New Issue
Block a user