Move file annotation resolve a bit earlier #KT-51499 Fixed
This commit is contained in:
Vendored
-16
@@ -1,16 +0,0 @@
|
||||
@file:OptIn(Marker::class)
|
||||
|
||||
@RequiresOptIn
|
||||
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
|
||||
annotation class Marker
|
||||
|
||||
@Marker
|
||||
fun experimental() {}
|
||||
|
||||
interface MyInterface {
|
||||
fun execute()
|
||||
}
|
||||
|
||||
class MyClass : MyInterface {
|
||||
override fun execute() = experimental()
|
||||
}
|
||||
+2
-1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
@file:OptIn(Marker::class)
|
||||
|
||||
@RequiresOptIn
|
||||
@@ -12,5 +13,5 @@ interface MyInterface {
|
||||
}
|
||||
|
||||
class MyClass : MyInterface {
|
||||
override fun execute() = <!OPT_IN_USAGE_ERROR!>experimental<!>()
|
||||
override fun execute() = experimental()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user