Fix provided properties access generation
The presense of accessors in the descriptor led to the wrong code generation in some cases. #KT-43176 fixed
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
|
||||
// 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
|
||||
Reference in New Issue
Block a user