Allow annotation constructor calls
in default parameter value expressions of anonymous classes (if it is not a compile-time constant, it will be reported separately). #KT-10136 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
annotation class A
|
||||
annotation class A1(val x: Int)
|
||||
|
||||
annotation class B(
|
||||
val a: A = A(),
|
||||
val x: Int = <!ANNOTATION_PARAMETER_DEFAULT_VALUE_MUST_BE_CONSTANT!>A1(42).x<!>,
|
||||
val aa: Array<A> = arrayOf(A())
|
||||
)
|
||||
Reference in New Issue
Block a user