Differentiate accessors by FieldAccessorKind

Otherwise accessors for backing fields (as in '{ field }') clash with
accessors for properties (as in '{ prop }').

 #KT-21258 Fixed Target versions 1.2.30
This commit is contained in:
Dmitry Petrov
2017-12-15 16:15:52 +03:00
parent d8cd926a8c
commit 17b4d4a973
7 changed files with 77 additions and 3 deletions
@@ -20153,6 +20153,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("kt21258_indirect.kt")
public void testKt21258_indirect() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/syntheticAccessors/kt21258_indirect.kt");
doTest(fileName);
}
@TestMetadata("kt21258_simple.kt")
public void testKt21258_simple() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/syntheticAccessors/kt21258_simple.kt");
doTest(fileName);
}
@TestMetadata("kt9717.kt")
public void testKt9717() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/syntheticAccessors/kt9717.kt");