e9bff861dd
This diagnostic works in accordance with KT-45844 and KT-49002
14 lines
295 B
Kotlin
Vendored
14 lines
295 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !OPT_IN: kotlin.RequiresOptIn
|
|
// !LANGUAGE: -OptInOnOverrideForbidden
|
|
|
|
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
|
|
@Retention(AnnotationRetention.BINARY)
|
|
annotation class E
|
|
|
|
class My {
|
|
<!OPT_IN_MARKER_ON_OVERRIDE_WARNING!>@E<!>
|
|
override fun hashCode() = 0
|
|
}
|
|
|