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 @@
package primitivesCoertion
import kotlin.coroutines.experimental.*
fun main(args: Array<String>) {
val a = buildSequence {
yield(1)
val a = awaitSeq()
//Breakpoint!
println(a) // (1)
}
println(a.toList())
}
suspend fun SequenceBuilder<Int>.awaitSeq(): Int = 42
// EXPRESSION: a
// RESULT: 42: I
@@ -0,0 +1,10 @@
LineBreakpoint created at primitivesCoertion.kt:10
Run Java
Connected to the target VM
primitivesCoertion.kt:10
Compile bytecode for a
Disconnected from the target VM
Process finished with exit code 0
42
[1]