mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 08:31:31 +00:00
15 lines
288 B
Kotlin
Vendored
15 lines
288 B
Kotlin
Vendored
import java.lang.annotation.RetentionPolicy
|
|
|
|
enum class E {
|
|
ENTRY
|
|
}
|
|
|
|
// Test resolve from source
|
|
val a: Enum<E> = E.ENTRY
|
|
|
|
// Test Java resolve
|
|
val b: Enum<RetentionPolicy> = RetentionPolicy.RUNTIME
|
|
|
|
// Test deserialized resolve
|
|
val c: Enum<AnnotationTarget> = AnnotationTarget.CLASS
|