Make EXPERIMENTAL_ANNOTATION_ON_OVERRIDE warning till 1.6
This commit is contained in:
Vendored
+12
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user