[FIR] Reproduce KT-62146

This commit is contained in:
Nikolay Lunyak
2023-10-05 15:51:53 +03:00
committed by Space Team
parent 166b99181b
commit 598b5dbdf4
7 changed files with 56 additions and 0 deletions
@@ -1251,6 +1251,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
runTest("compiler/testData/diagnostics/tests/suppressInWhen.kt");
}
@Test
@TestMetadata("suppressNamedArg.kt")
public void testSuppressNamedArg() throws Exception {
runTest("compiler/testData/diagnostics/tests/suppressNamedArg.kt");
}
@Test
@TestMetadata("suppressOnPlusAssign.kt")
public void testSuppressOnPlusAssign() throws Exception {
@@ -1251,6 +1251,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
runTest("compiler/testData/diagnostics/tests/suppressInWhen.kt");
}
@Test
@TestMetadata("suppressNamedArg.kt")
public void testSuppressNamedArg() throws Exception {
runTest("compiler/testData/diagnostics/tests/suppressNamedArg.kt");
}
@Test
@TestMetadata("suppressOnPlusAssign.kt")
public void testSuppressOnPlusAssign() throws Exception {
@@ -1251,6 +1251,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
runTest("compiler/testData/diagnostics/tests/suppressInWhen.kt");
}
@Test
@TestMetadata("suppressNamedArg.kt")
public void testSuppressNamedArg() throws Exception {
runTest("compiler/testData/diagnostics/tests/suppressNamedArg.kt");
}
@Test
@TestMetadata("suppressOnPlusAssign.kt")
public void testSuppressOnPlusAssign() throws Exception {
@@ -1251,6 +1251,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
runTest("compiler/testData/diagnostics/tests/suppressInWhen.kt");
}
@Test
@TestMetadata("suppressNamedArg.kt")
public void testSuppressNamedArg() throws Exception {
runTest("compiler/testData/diagnostics/tests/suppressNamedArg.kt");
}
@Test
@TestMetadata("suppressOnPlusAssign.kt")
public void testSuppressOnPlusAssign() throws Exception {
@@ -0,0 +1,13 @@
// ISSUE: KT-62146
@Deprecated("This is deprecated", level = DeprecationLevel.WARNING)
fun deprecated() = 1
@Suppress("DEPRECATION")
fun main() = deprecated()
@Suppress(names = ["DEPRECATION"])
fun plain() = <!DEPRECATION!>deprecated<!>()
@Suppress(names = arrayOf("DEPRECATION"))
fun brain() = <!DEPRECATION!>deprecated<!>()
+13
View File
@@ -0,0 +1,13 @@
// ISSUE: KT-62146
@Deprecated("This is deprecated", level = DeprecationLevel.WARNING)
fun deprecated() = 1
@Suppress("DEPRECATION")
fun main() = deprecated()
@Suppress(names = ["DEPRECATION"])
fun plain() = deprecated()
@Suppress(names = arrayOf("DEPRECATION"))
fun brain() = deprecated()
@@ -1251,6 +1251,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
runTest("compiler/testData/diagnostics/tests/suppressInWhen.kt");
}
@Test
@TestMetadata("suppressNamedArg.kt")
public void testSuppressNamedArg() throws Exception {
runTest("compiler/testData/diagnostics/tests/suppressNamedArg.kt");
}
@Test
@TestMetadata("suppressOnPlusAssign.kt")
public void testSuppressOnPlusAssign() throws Exception {