Shortcut quick fix for migrating all coroutines in the project (KT-27164)
#KT-27164 Fixed
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user