[Test] Reproduce KT-66258

This commit is contained in:
Dmitriy Novozhilov
2024-03-04 14:38:42 +02:00
committed by Space Team
parent 172df04c9b
commit 5e742884de
7 changed files with 66 additions and 0 deletions
@@ -0,0 +1,18 @@
// DIAGNOSTICS: -ERROR_SUPPRESSION
// WITH_STDLIB
// ISSUE: KT-66258
@RequiresOptIn
annotation class Ann
class A(
<!OPT_IN_MARKER_ON_WRONG_TARGET!>@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 = ""
}
@@ -0,0 +1,18 @@
// 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 = ""
}