Fix line numbers generation for coerced primitives

in coroutines
 #KT-25076: Fixed
This commit is contained in:
Ilmir Usmanov
2018-07-26 16:03:58 +03:00
parent a470fd21ca
commit 300876348a
7 changed files with 104 additions and 2 deletions
@@ -0,0 +1,18 @@
// LANGUAGE_VERSION: 1.3
import kotlin.coroutines.*
import kotlin.sequences.*
fun main(args: Array<String>) {
val s = buildSequence {
yield(1)
val a = awaitSeq()
println(a) // (1)
}
println(s.toList())
}
suspend fun SequenceBuilder<Int>.awaitSeq(): Int = 42
// 1 LOCALVARIABLE a I L18 L22 3
// 1 LINENUMBER 10 L18