Don't break the world if enum in annotation isn't found

This commit is contained in:
Alexander Udalov
2013-09-05 18:17:37 +04:00
parent c8a5c9ef59
commit 9d2add81f8
9 changed files with 83 additions and 17 deletions
@@ -0,0 +1,12 @@
package test
// To regenerate this test:
// 1. Compile this file
// 2. Delete test/E.class
// 3. Pack test/ into jar
enum class E { ENTRY }
annotation class Anno(val e: E)
Anno(E.ENTRY) open class Class
@@ -0,0 +1,3 @@
package test
class Subclass : Class()
@@ -0,0 +1,14 @@
package test
internal final annotation class Anno : jet.Annotation {
public constructor Anno(/*0*/ e: [ERROR : test.E])
internal final val e: [ERROR : test.E]
}
test.Anno(e = Unresolved enum entry: test.E.ENTRY: [ERROR : Unresolved enum entry: test.E.ENTRY]) internal open class Class {
public constructor Class()
}
internal final class Subclass : test.Class {
public constructor Subclass()
}