[NI-MIGRATE] Update test about signature enhancements

It's required as now there are no synthetic candidates
This commit is contained in:
Mikhail Zarechenskiy
2020-02-12 18:53:04 +03:00
parent 319a38bd5c
commit c2fc633ad6
10 changed files with 73 additions and 72 deletions
@@ -1,13 +1,13 @@
fun notNullValues(list: MutableList<String>) {
list.replaceAll { it.length.toString() }
// SUCCESS
// ORIGINAL: fun replaceAll((E) -> E): Unit defined in kotlin.collections.MutableList
// SUBSTITUTED: fun replaceAll((String) -> String): Unit defined in kotlin.collections.MutableList
// ORIGINAL: fun replaceAll(UnaryOperator<E>): Unit defined in kotlin.collections.MutableList
// SUBSTITUTED: fun replaceAll(UnaryOperator<String>): Unit defined in kotlin.collections.MutableList
}
fun nullableValues(list: MutableList<String?>) {
list.replaceAll { it?.run { length.toString() } }
// SUCCESS
// ORIGINAL: fun replaceAll((E) -> E): Unit defined in kotlin.collections.MutableList
// SUBSTITUTED: fun replaceAll((String?) -> String?): Unit defined in kotlin.collections.MutableList
// ORIGINAL: fun replaceAll(UnaryOperator<E>): Unit defined in kotlin.collections.MutableList
// SUBSTITUTED: fun replaceAll(UnaryOperator<String?>): Unit defined in kotlin.collections.MutableList
}