Don't report EXPERIMENTAL_OVERRIDE_ERROR on annotated local functions
#KT-31728 Fixed
This commit is contained in:
committed by
teamcityserver
parent
cb232725f0
commit
7393465696
+23
@@ -0,0 +1,23 @@
|
||||
// FIR_IDENTICAL
|
||||
// !USE_EXPERIMENTAL: kotlin.RequiresOptIn
|
||||
|
||||
@RequiresOptIn
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
|
||||
annotation class MyAnn
|
||||
|
||||
interface MyInterface {
|
||||
@MyAnn
|
||||
fun foo()
|
||||
|
||||
@MyAnn
|
||||
fun bar()
|
||||
}
|
||||
|
||||
val field = object : MyInterface {
|
||||
@MyAnn
|
||||
override fun foo() {}
|
||||
|
||||
@OptIn(MyAnn::class)
|
||||
override fun bar() {}
|
||||
}
|
||||
Reference in New Issue
Block a user