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

17 lines
279 B
Kotlin
Vendored

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