Add additional visibility check for synthetic extensions

Use extension receiver as dispatch one, because it is effectively dispatch
(after some desugaring)
This commit is contained in:
Denis Zharkov
2016-03-31 12:26:14 +03:00
parent b5c9523e4b
commit bc1b34a989
8 changed files with 188 additions and 2 deletions
@@ -15536,6 +15536,18 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("syntheticPropertyExtensions.kt")
public void testSyntheticPropertyExtensions() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticPropertyExtensions.kt");
doTest(fileName);
}
@TestMetadata("syntheticSAMExtensions.kt")
public void testSyntheticSAMExtensions() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/scopes/protectedVisibility/syntheticSAMExtensions.kt");
doTest(fileName);
}
@TestMetadata("unstableSmartCast.kt")
public void testUnstableSmartCast() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/scopes/protectedVisibility/unstableSmartCast.kt");