Fix deprecations in testData
This commit is contained in:
+1
-1
@@ -3,5 +3,5 @@
|
||||
|
||||
fun foo() {
|
||||
kotlin.test.<caret>assertFailsWith<Exception>("", {})
|
||||
kotlin.test.assertFailsWith(RuntimeException::class.java, "", {})
|
||||
kotlin.test.assertFailsWith(RuntimeException::class, "", {})
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@ import kotlin.test.assertFailsWith
|
||||
|
||||
fun foo() {
|
||||
<caret>assertFailsWith<Exception>("", {})
|
||||
assertFailsWith(RuntimeException::class.java, "", {})
|
||||
assertFailsWith(RuntimeException::class, "", {})
|
||||
}
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
// WITH_RUNTIME
|
||||
// IS_APPLICABLE: FALSE
|
||||
|
||||
fun Int.withIndex(): List<Pair<Int, Int>> = linkedListOf<Pair<Int, Int>>()
|
||||
fun Int.withIndex(): List<Pair<Int, Int>> = listOf<Pair<Int, Int>>()
|
||||
|
||||
fun foo(s: Int) {
|
||||
for ((index<caret>, a) in s.withIndex()) {
|
||||
|
||||
Reference in New Issue
Block a user