KT-63552 [SLC] Support empty arrays in property initializers and default parameter values
This commit is contained in:
committed by
Space Team
parent
67b1bb448a
commit
7c6375c85a
+2
-1
@@ -148,7 +148,8 @@ internal object FirAnnotationValueConverter {
|
||||
is FirNamedFunctionSymbol -> {
|
||||
// arrayOf call with a single vararg argument.
|
||||
if (resolvedSymbol.callableId.asSingleFqName() in ArrayFqNames.ARRAY_CALL_FQ_NAMES)
|
||||
argumentList.arguments.single().convertConstantExpression(builder)
|
||||
argumentList.arguments.singleOrNull()?.convertConstantExpression(builder)
|
||||
?: KtArrayAnnotationValue(emptyList(), sourcePsi)
|
||||
else null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user