Files
kotlin-fork/compiler/testData/diagnostics/tests/suppressNamedArg.kt
T
Nikolay Lunyak 54285736d0 [FIR] Don't miss diagnostics passed to @Suppress as names = []
In these cases we have a `FirVarargArgumentsExpression`
with a `FirNamedArgumentExpression` inside as its first
argument, which, in turn, has a `FirArrayLiteral`
argument.

^KT-62146 Fixed
2023-10-12 08:56:12 +00:00

15 lines
311 B
Kotlin
Vendored

// FIR_IDENTICAL
// 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()