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:
Ilya Chernikov
2020-12-10 15:36:40 +01:00
parent ffdcda8914
commit 1bd6cc823c
4 changed files with 48 additions and 57 deletions
@@ -34,6 +34,11 @@ public class CustomScriptCodegenTestGenerated extends AbstractCustomScriptCodege
runTest("compiler/testData/codegen/customScript/pathPattern5.kts");
}
@TestMetadata("providedPropsInLambda.kts")
public void testProvidedPropsInLambda_kts() throws Exception {
runTest("compiler/testData/codegen/customScript/providedPropsInLambda.kts");
}
@TestMetadata("simpleEnvVars.kts")
public void testSimpleEnvVars_kts() throws Exception {
runTest("compiler/testData/codegen/customScript/simpleEnvVars.kts");