K2: generate implicit dispatch receivers for static members called
#KT-55371 Fixed #KT-55372 Fixed
This commit is contained in:
committed by
Space Team
parent
9cfcf057ef
commit
4167a69e30
Generated
+12
@@ -34614,6 +34614,18 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/visibility/packagePrivateStatic.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("packagePrivateStaticInterfaceMethod.kt")
|
||||
public void testPackagePrivateStaticInterfaceMethod() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/visibility/packagePrivateStaticInterfaceMethod.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("packagePrivateStaticViaInternal.kt")
|
||||
public void testPackagePrivateStaticViaInternal() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/visibility/packagePrivateStaticViaInternal.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("packagePrivateStaticViaTypeAlias.kt")
|
||||
public void testPackagePrivateStaticViaTypeAlias() throws Exception {
|
||||
|
||||
+12
@@ -28962,12 +28962,24 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/javaVisibility/package"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("cannotAccessInterfaceMemberViaReceiver.kt")
|
||||
public void testCannotAccessInterfaceMemberViaReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaVisibility/package/cannotAccessInterfaceMemberViaReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("cannotAccessStaticMemberViaReceiver.kt")
|
||||
public void testCannotAccessStaticMemberViaReceiver() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaVisibility/package/cannotAccessStaticMemberViaReceiver.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("cannotAccessStaticMemberViaReceiver2.kt")
|
||||
public void testCannotAccessStaticMemberViaReceiver2() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/javaVisibility/package/cannotAccessStaticMemberViaReceiver2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("cannotAccessStaticMemberViaTypeAlias.kt")
|
||||
public void testCannotAccessStaticMemberViaTypeAlias() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user