mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
18 lines
237 B
Kotlin
Vendored
18 lines
237 B
Kotlin
Vendored
// FILE: Foo.java
|
|
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
@Retention(RetentionPolicy.CLASS)
|
|
@interface Foo {
|
|
}
|
|
|
|
// FILE: 1.kt
|
|
|
|
@Foo class Bar
|
|
|
|
fun box(): String {
|
|
Bar()
|
|
return "OK"
|
|
}
|