Fix testData/intentions: replace deprecated reverse usages.

This commit is contained in:
Ilya Gorbunov
2015-10-02 20:17:45 +03:00
parent 782f41580e
commit 1c416ae5f3
6 changed files with 6 additions and 6 deletions
@@ -2,5 +2,5 @@
fun main() {
val x = 1..4
x.reverse().forEach<caret> { it }
x.reversed().forEach<caret> { it }
}
@@ -2,7 +2,7 @@
fun main() {
val x = 1..4
for (it in x.reverse()) {
for (it in x.reversed()) {
it
}
}
@@ -1,5 +1,5 @@
// WITH_RUNTIME
fun main(args: Array<String>){
val x = "abcd"
val y = "<caret>$x${x.reverse()}"
val y = "<caret>$x${x.reversed()}"
}
@@ -1,5 +1,5 @@
// WITH_RUNTIME
fun main(args: Array<String>){
val x = "abcd"
val y = x + x.reverse()
val y = x + x.reversed()
}
@@ -1,5 +1,5 @@
// WITH_RUNTIME
fun main(args: Array<String>){
val x = "abcd"
val y = x +<caret> x.reverse()
val y = x +<caret> x.reversed()
}
@@ -1,5 +1,5 @@
// WITH_RUNTIME
fun main(args: Array<String>){
val x = "abcd"
val y = "$x${x.reverse()}"
val y = "$x${x.reversed()}"
}