Use our own primitive boxing methods in coroutines codegen
#KT-26490 Fixed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// !LANGUAGE: +ReleaseCoroutines
|
||||
|
||||
inline fun inlineMe(crossinline c: suspend () -> Int): suspend () -> Int {
|
||||
val i: suspend () -> Int = { c() + c() }
|
||||
return i
|
||||
}
|
||||
|
||||
// 1 valueOf
|
||||
// 0 boxInt
|
||||
@@ -0,0 +1,9 @@
|
||||
// !LANGUAGE: +ReleaseCoroutines
|
||||
|
||||
inline suspend fun inlineMe() = 1000
|
||||
|
||||
// inlineMe$$forInline : valueOf
|
||||
// inlineMe : boxInt
|
||||
|
||||
// 1 valueOf
|
||||
// 1 boxInt
|
||||
@@ -0,0 +1,6 @@
|
||||
// !LANGUAGE: +ReleaseCoroutines
|
||||
|
||||
suspend fun produce(): Int = 1000
|
||||
|
||||
// 0 valueOf
|
||||
// 1 boxInt
|
||||
Reference in New Issue
Block a user