Make EXPERIMENTAL_ANNOTATION_ON_OVERRIDE warning till 1.6

This commit is contained in:
Mikhail Glukhikh
2021-07-26 12:22:23 +03:00
parent bb38eaae61
commit 810def829c
18 changed files with 112 additions and 8 deletions
@@ -0,0 +1,12 @@
// !USE_EXPERIMENTAL: kotlin.RequiresOptIn
// !LANGUAGE: -OptInOnOverrideForbidden
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
@Retention(AnnotationRetention.BINARY)
annotation class E
class My {
<!EXPERIMENTAL_ANNOTATION_ON_OVERRIDE_WARNING!>@E<!>
override fun hashCode() = 0
}