Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/experimental/fileOptInSuppressesOverride.kt
T
2022-04-04 12:51:34 +00:00

18 lines
296 B
Kotlin
Vendored

// FIR_IDENTICAL
@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()
}