K2: add a test to ensure #KT-63756 Fixed

This commit is contained in:
Mikhail Glukhikh
2024-02-06 13:26:39 +01:00
committed by Space Team
parent 797284dada
commit 8ee54a9045
6 changed files with 54 additions and 0 deletions
@@ -35619,6 +35619,12 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo
runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt");
}
@Test
@TestMetadata("expectAnnotationAsTypeAlias.kt")
public void testExpectAnnotationAsTypeAlias() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/k2/expectAnnotationAsTypeAlias.kt");
}
@Test
@TestMetadata("expectValInInlineClass.kt")
public void testExpectValInInlineClass() throws Exception {
@@ -35619,6 +35619,12 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi
runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt");
}
@Test
@TestMetadata("expectAnnotationAsTypeAlias.kt")
public void testExpectAnnotationAsTypeAlias() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/k2/expectAnnotationAsTypeAlias.kt");
}
@Test
@TestMetadata("expectValInInlineClass.kt")
public void testExpectValInInlineClass() throws Exception {
@@ -35264,6 +35264,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt");
}
@Test
@TestMetadata("expectAnnotationAsTypeAlias.kt")
public void testExpectAnnotationAsTypeAlias() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/k2/expectAnnotationAsTypeAlias.kt");
}
@Test
@TestMetadata("expectValInInlineClass.kt")
public void testExpectValInInlineClass() throws Exception {
@@ -35264,6 +35264,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt");
}
@Test
@TestMetadata("expectAnnotationAsTypeAlias.kt")
public void testExpectAnnotationAsTypeAlias() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/k2/expectAnnotationAsTypeAlias.kt");
}
@Test
@TestMetadata("expectValInInlineClass.kt")
public void testExpectValInInlineClass() throws Exception {
@@ -35264,6 +35264,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
runTest("compiler/testData/codegen/box/multiplatform/k2/dataClassInCommonAndPlatform.kt");
}
@Test
@TestMetadata("expectAnnotationAsTypeAlias.kt")
public void testExpectAnnotationAsTypeAlias() throws Exception {
runTest("compiler/testData/codegen/box/multiplatform/k2/expectAnnotationAsTypeAlias.kt");
}
@Test
@TestMetadata("expectValInInlineClass.kt")
public void testExpectValInInlineClass() throws Exception {
@@ -0,0 +1,24 @@
// LANGUAGE: +MultiPlatformProjects
// TARGET_BACKEND: JVM_IR
// ISSUE: KT-63756
// MODULE: common
// FILE: Expect.kt
expect annotation class Ignore
// MODULE: main()()(common)
// FILE: org/junit/Ignore.java
package org.junit;
public @interface Ignore {}
// FILE: Actual.kt
actual typealias Ignore = org.junit.Ignore
@Ignore
class Test {
fun ok() = "OK"
}
fun box() = Test().ok()