[FIR] Reproduce KT-62146
This commit is contained in:
committed by
Space Team
parent
166b99181b
commit
598b5dbdf4
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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 {
|
||||
|
||||
+6
@@ -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<!>()
|
||||
@@ -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()
|
||||
Generated
+6
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user