Remove old buildIterator import (KT-26679)

This commit is contained in:
Nikolay Krasko
2018-09-19 15:00:01 +03:00
parent 6a860dd042
commit bbd15db308
4 changed files with 24 additions and 1 deletions
@@ -0,0 +1,9 @@
// "Fix experimental coroutines usage" "true"
// ERROR: Using 'buildIterator(noinline suspend SequenceScope<T>.() -> Unit): Iterator<T>' is an error. Use 'iterator { }' function instead.
// WITH_RUNTIME
import kotlin.coroutines.<caret>experimental.buildIterator
fun main(args: Array<String>) {
val lazySeq = buildIterator<Int> {
}
}
@@ -0,0 +1,8 @@
// "Fix experimental coroutines usage" "true"
// ERROR: Using 'buildIterator(noinline suspend SequenceScope<T>.() -> Unit): Iterator<T>' is an error. Use 'iterator { }' function instead.
// WITH_RUNTIME<caret>
fun main(args: Array<String>) {
val lazySeq = buildIterator<Int> {
}
}