mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
15 lines
292 B
Kotlin
15 lines
292 B
Kotlin
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<InlineOption> = InlineOption.ONLY_LOCAL_RETURN
|