Add constructor parameter for compileTimeConstant (can be used in annotation)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
annotation class AnnE(val i: MyEnum)
|
||||
|
||||
AnnE(<!ANNOTATION_PARAMETER_MUST_BE_ENUM_CONST!>e<!>)
|
||||
class Test
|
||||
|
||||
val e: MyEnum = MyEnum.A
|
||||
|
||||
enum class MyEnum {
|
||||
A
|
||||
}
|
||||
|
||||
AnnE(<!TYPE_MISMATCH!>Test()<!>)
|
||||
class Test2
|
||||
Reference in New Issue
Block a user