Type-check reference to property with invisible setter to KProperty

#KT-12337 Fixed
This commit is contained in:
Alexander Udalov
2016-06-15 17:53:52 +03:00
parent c5a208f3eb
commit 6562a2db19
13 changed files with 145 additions and 19 deletions
@@ -1956,6 +1956,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("privateSetterInsideClass.kt")
public void testPrivateSetterInsideClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/property/privateSetterInsideClass.kt");
doTest(fileName);
}
@TestMetadata("privateSetterOutsideClass.kt")
public void testPrivateSetterOutsideClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/property/privateSetterOutsideClass.kt");
doTest(fileName);
}
@TestMetadata("simpleExtension.kt")
public void testSimpleExtension() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/callableReference/property/simpleExtension.kt");
@@ -5116,6 +5128,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("privateSetterKPropertyIsNotMutable.kt")
public void testPrivateSetterKPropertyIsNotMutable() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/privateSetterKPropertyIsNotMutable.kt");
doTest(fileName);
}
@TestMetadata("privateVar.kt")
public void testPrivateVar() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/delegatedProperty/privateVar.kt");