Minor, add test on enum assignability to kotlin.Enum
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user