Cleanup deprecated symbol usages in testData

This commit is contained in:
Ilya Gorbunov
2016-01-16 20:10:40 +03:00
parent eefbd72a64
commit 25c4453dc5
403 changed files with 933 additions and 921 deletions
@@ -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
View File
@@ -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) {
}
}