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
@@ -3,5 +3,5 @@
// PARAM_DESCRIPTOR: value-parameter val it: kotlin.collections.Map.Entry<(kotlin.Boolean..kotlin.Boolean?), (kotlin.Boolean..kotlin.Boolean?)> defined in test.<anonymous>
// PARAM_TYPES: kotlin.collections.Map.Entry<(kotlin.Boolean..kotlin.Boolean?), (kotlin.Boolean..kotlin.Boolean?)>
fun test() {
J.getMap().filter { <selection>it.getKey()</selection> }
J.getMap().filter { <selection>it.key</selection> }
}
@@ -6,4 +6,4 @@ fun test() {
J.getMap().filter { b(it) }
}
private fun b(it: Map.Entry<Boolean, Boolean>): Boolean? = it.getKey()
private fun b(it: Map.Entry<Boolean, Boolean>): Boolean? = it.key
@@ -1,2 +1,2 @@
// WITH_RUNTIME
fun foo(list: List<String>) = list.filter <selection>{ it.length() > 6 }</selection>
fun foo(list: List<String>) = list.filter <selection>{ it.length > 6 }</selection>
@@ -1,2 +1,2 @@
// WITH_RUNTIME
fun foo(list: List<String>, function: () -> (String) -> Boolean = { { it.length() > 6 } }) = list.filter(function())
fun foo(list: List<String>, function: () -> (String) -> Boolean = { { it.length > 6 } }) = list.filter(function())
@@ -1,2 +1,2 @@
// WITH_RUNTIME
fun foo(list: List<String>) = list.filter <selection>{ it.length() > 6 }</selection>
fun foo(list: List<String>) = list.filter <selection>{ it.length > 6 }</selection>
@@ -1,2 +1,2 @@
// WITH_RUNTIME
fun foo(list: List<String>, function: (String) -> Boolean = { it.length() > 6 }) = list.filter(function)
fun foo(list: List<String>, function: (String) -> Boolean = { it.length > 6 }) = list.filter(function)
@@ -1,4 +1,4 @@
// WITH_RUNTIME
fun foo(c : Collection<String>){
c.filterTo(ArrayList<String>())<selection>{ it.length() > 1 }</selection>
c.filterTo(ArrayList<String>())<selection>{ it.length > 1 }</selection>
}
@@ -1,5 +1,5 @@
// WITH_RUNTIME
fun foo(c : Collection<String>){
val predicate: (String) -> Boolean = { it.length() > 1 }
val predicate: (String) -> Boolean = { it.length > 1 }
c.filterTo(ArrayList<String>(), predicate)
}
@@ -1,8 +1,8 @@
package target
class A(val a: A, val a2: A) {
val klass = javaClass<A>()
val klass2 = javaClass<A>()
val klass = A::class.java
val klass2 = A::class.java
val aa = A(a)
val aa2 = A(a)
}
@@ -1,8 +1,8 @@
package source
class <caret>A(val a: A, val a2: source.A) {
val klass = javaClass<A>()
val klass2 = javaClass<source.A>()
val klass = A::class.java
val klass2 = source.A::class.java
val aa = A(a)
val aa2 = source.A(a)
}