blob: 4752447c08f7df5e35a2c1288ee36b0b27b90fe3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
package com.example
@RequiresOptIn
@Retention(AnnotationRetention.BINARY)
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
annotation class MyOptIn
@OptIn(MyOptIn::class)
fun main() {
print("hello world")
}
|