Minor, add test on enum assignability to kotlin.Enum

This commit is contained in:
Alexander Udalov
2014-08-13 16:33:36 +04:00
parent 226bfe65f0
commit 9e971ed2b9
2 changed files with 19 additions and 0 deletions
@@ -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