a08df1821f
`@Suppress` annotation has `VALUE_PARAMETER` target, so when a property in the primary constructor is annotated with `@Suppress` it sticks to the parameter. But the suppression should work for all diagnostics reported on the parameter **and** the property ^KT-66258 Fixed
20 lines
309 B
Kotlin
Vendored
20 lines
309 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// DIAGNOSTICS: -ERROR_SUPPRESSION
|
|
// WITH_STDLIB
|
|
// ISSUE: KT-66258
|
|
|
|
@RequiresOptIn
|
|
annotation class Ann
|
|
|
|
class A(
|
|
@get:Ann
|
|
@Suppress("OPT_IN_MARKER_ON_WRONG_TARGET")
|
|
val s: String
|
|
)
|
|
|
|
class B {
|
|
@get:Ann
|
|
@Suppress("OPT_IN_MARKER_ON_WRONG_TARGET")
|
|
val s: String = ""
|
|
}
|