Renamed test data folders
This commit is contained in:
@@ -0,0 +1 @@
|
||||
org.jetbrains.kotlin.idea.intentions.RemoveForLoopIndicesIntention
|
||||
@@ -0,0 +1,6 @@
|
||||
//IS_APPLICABLE: FALSE
|
||||
fun foo(bar: List<String>) {
|
||||
for (<caret>a in bar) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// IS_APPLICABLE: FALSE
|
||||
//WITH_RUNTIME
|
||||
|
||||
fun foo(b: List<Int>) : Int {
|
||||
for ((i, <caret>c) in b.withIndex()) {
|
||||
return i
|
||||
}
|
||||
return 0
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// WITH_RUNTIME
|
||||
// IS_APPLICABLE: FALSE
|
||||
|
||||
fun Int.withIndex(): List<Pair<Int, Int>> = linkedListOf<Pair<Int, Int>>()
|
||||
|
||||
fun foo(s: Int) {
|
||||
for ((index<caret>, a) in s.withIndex()) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
//WITH_RUNTIME
|
||||
fun foo(bar: List<Int>) {
|
||||
for ((i : <caret>Int, b: Int) in bar.withIndex()) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
//WITH_RUNTIME
|
||||
fun foo(bar: List<Int>) {
|
||||
for (b: Int in bar) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
//WITH_RUNTIME
|
||||
fun foo(bar: List<String>) {
|
||||
for ((i,<caret>a) in bar.withIndex()) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
//WITH_RUNTIME
|
||||
fun foo(bar: List<String>) {
|
||||
for (a in bar) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user