make FunctionCodegen skip method bodies we don't need, which avoids problems with inlining methods inside methods we don't need
KT-33604
This commit is contained in:
committed by
Alexey Tsvetkov
parent
b10f47b50e
commit
0285b26e40
@@ -0,0 +1,7 @@
|
||||
package app
|
||||
|
||||
import lib.*
|
||||
|
||||
fun runAppAndReturnOk(): String {
|
||||
return inlineCapture("OK")
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package lib
|
||||
|
||||
fun inlineCapture(s: String): String {
|
||||
return with(StringBuilder()) {
|
||||
val o = object {
|
||||
override fun toString() = s
|
||||
}
|
||||
append(o)
|
||||
}.toString()
|
||||
}
|
||||
Reference in New Issue
Block a user