Fix reflection class lookup in default package

Do not append "." to the name of the class in the default package.
This commit is contained in:
Alexander Udalov
2022-09-29 01:33:24 +02:00
committed by Space Team
parent e290fa5f7b
commit 51ce829b96
6 changed files with 57 additions and 3 deletions
@@ -40245,6 +40245,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/arrayKClass.kt");
}
@Test
@TestMetadata("arrayTypeInDefaultPackage.kt")
public void testArrayTypeInDefaultPackage() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/arrayTypeInDefaultPackage.kt");
}
@Test
@TestMetadata("classLiteralWithExpectedType.kt")
public void testClassLiteralWithExpectedType() throws Exception {
@@ -41679,6 +41679,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/arrayKClass.kt");
}
@Test
@TestMetadata("arrayTypeInDefaultPackage.kt")
public void testArrayTypeInDefaultPackage() throws Exception {
runTest("compiler/testData/codegen/box/reflection/annotations/onTypes/arrayTypeInDefaultPackage.kt");
}
@Test
@TestMetadata("classLiteralWithExpectedType.kt")
public void testClassLiteralWithExpectedType() throws Exception {