Cleanup deprecated symbol usages in testData
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
// ERROR: None of the following functions can be called with the arguments supplied: <br>public fun assert(value: kotlin.Boolean): kotlin.Unit defined in kotlin<br>public inline fun assert(value: kotlin.Boolean, lazyMessage: () -> kotlin.Any): kotlin.Unit defined in kotlin<br>@kotlin.Deprecated public fun assert(value: kotlin.Boolean, message: kotlin.Any = ...): kotlin.Unit defined in kotlin
|
||||
// ERROR: None of the following functions can be called with the arguments supplied: <br>public fun assert(value: kotlin.Boolean): kotlin.Unit defined in kotlin<br>public inline fun assert(value: kotlin.Boolean, lazyMessage: () -> kotlin.Any): kotlin.Unit defined in kotlin
|
||||
|
||||
fun foo() {
|
||||
<caret>assert()
|
||||
|
||||
+3
-3
@@ -2,9 +2,9 @@
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val map = hashMapOf(1 to 1)
|
||||
for (<caret>entry in map.entrySet()) {
|
||||
val key = entry.getKey()
|
||||
val value = entry.getValue()
|
||||
for (<caret>entry in map.entries) {
|
||||
val key = entry.key
|
||||
val value = entry.value
|
||||
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
import java.util.HashMap
|
||||
|
||||
fun foo(map : HashMap<String, Int>) {
|
||||
for (<caret>entry in map.entrySet()) {
|
||||
for (<caret>entry in map.entries) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
import java.util.HashMap
|
||||
|
||||
fun foo(map : HashMap<String, Int>) {
|
||||
for (entry: MutableMap.MutableEntry<String, Int><caret> in map.entrySet()) {
|
||||
for (entry: MutableMap.MutableEntry<String, Int><caret> in map.entries) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user