1bd6cc823c
The presense of accessors in the descriptor led to the wrong code generation in some cases. #KT-43176 fixed
11 lines
231 B
Kotlin
Vendored
11 lines
231 B
Kotlin
Vendored
|
|
// KOTLIN_SCRIPT_DEFINITION: org.jetbrains.kotlin.codegen.TestScriptWithSimpleEnvVars
|
|
|
|
// envVar: stringVar1=abracadabra
|
|
|
|
fun foo(body: () -> String): String = body()
|
|
|
|
val res = foo { stringVar1.drop(5) }
|
|
|
|
// expected: res=adabra
|