Shortcut quick fix for migrating all coroutines in the project (KT-27164)

#KT-27164 Fixed
This commit is contained in:
Nikolay Krasko
2018-09-28 15:08:20 +03:00
parent 282407c4a7
commit b09ec3cbb3
4 changed files with 98 additions and 3 deletions
@@ -0,0 +1,16 @@
// "Fix experimental coroutines usages in the project" "true"
// WITH_RUNTIME
package migrate
import kotlin.coroutines.experimental.buildIterator
import kotlin.coroutines.experimental.buildSequence
fun main(args: Array<String>) {
val one = <caret>buildSequence {
yield(1)
}
val two = buildIterator {
yield(1)
}
}
@@ -0,0 +1,13 @@
// "Fix experimental coroutines usages in the project" "true"
// WITH_RUNTIME
package migrate
fun main(args: Array<String>) {
val one = sequence {
yield(1)
}
val two = iterator {
yield(1)
}
}