Fix line numbers generation for coerced primitives
in coroutines #KT-25076: Fixed
This commit is contained in:
Vendored
+18
@@ -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
|
||||
Vendored
+10
@@ -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]
|
||||
Reference in New Issue
Block a user