Files
kotlin-fork/compiler/testData/diagnostics/tests/enum/enumIsAssignableToBuiltInEnum.kt
T

16 lines
305 B
Kotlin
Vendored

// FIR_IDENTICAL
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