[FIR] Use @DeprecatedSinceKotlin in the resolution

This commit is contained in:
Andrey Zinovyev
2021-06-17 12:26:31 +03:00
committed by teamcityserver
parent b64f7909b8
commit 9fad55d551
22 changed files with 241 additions and 62 deletions
@@ -13893,6 +13893,22 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/deprecated")
@TestDataPath("$PROJECT_ROOT")
public class Deprecated {
@Test
public void testAllFilesPresentInDeprecated() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/deprecated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM, true);
}
@Test
@TestMetadata("deprecatedSinceKotlin.kt")
public void testDeprecatedSinceKotlin() throws Exception {
runTest("compiler/testData/codegen/box/deprecated/deprecatedSinceKotlin.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam")
@TestDataPath("$PROJECT_ROOT")
@@ -13893,6 +13893,22 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/deprecated")
@TestDataPath("$PROJECT_ROOT")
public class Deprecated {
@Test
public void testAllFilesPresentInDeprecated() throws Exception {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/codegen/box/deprecated"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
}
@Test
@TestMetadata("deprecatedSinceKotlin.kt")
public void testDeprecatedSinceKotlin() throws Exception {
runTest("compiler/testData/codegen/box/deprecated/deprecatedSinceKotlin.kt");
}
}
@Nested
@TestMetadata("compiler/testData/codegen/box/destructuringDeclInLambdaParam")
@TestDataPath("$PROJECT_ROOT")