Fix failing test because of lack of inference annotation

LINENUMBER was incremented because of added import
This commit is contained in:
Mikhail Zarechenskiy
2018-11-20 17:16:34 +03:00
parent 761cf0812b
commit 9d2524a790
@@ -1,6 +1,7 @@
// LANGUAGE_VERSION: 1.3
import kotlin.sequences.*
import kotlin.experimental.*
fun main(args: Array<String>) {
val s = sequence {
@@ -11,7 +12,9 @@ fun main(args: Array<String>) {
println(s.toList())
}
@UseExperimental(ExperimentalTypeInference::class)
@BuilderInference
suspend fun SequenceScope<Int>.awaitSeq(): Int = 42
// 1 LOCALVARIABLE a I L19 L23 3
// 1 LINENUMBER 9 L19
// 1 LINENUMBER 10 L19