FIR2IR: fix inverted types for array/element in arrayOf call.
This commit is contained in:
committed by
Mikhail Glukhikh
parent
b93868c30b
commit
ff509bdcd3
+2
-2
@@ -88,7 +88,7 @@ class ExpressionsConverter(
|
||||
CALL_EXPRESSION -> convertCallExpression(expression)
|
||||
WHEN -> convertWhenExpression(expression)
|
||||
ARRAY_ACCESS_EXPRESSION -> convertArrayAccessExpression(expression)
|
||||
COLLECTION_LITERAL_EXPRESSION -> convertCollectionLiteralExpresion(expression)
|
||||
COLLECTION_LITERAL_EXPRESSION -> convertCollectionLiteralExpression(expression)
|
||||
STRING_TEMPLATE -> convertStringTemplate(expression)
|
||||
is KtConstantExpressionElementType -> convertConstantExpression(expression)
|
||||
REFERENCE_EXPRESSION -> convertSimpleNameExpression(expression)
|
||||
@@ -808,7 +808,7 @@ class ExpressionsConverter(
|
||||
/**
|
||||
* @see org.jetbrains.kotlin.parsing.KotlinExpressionParsing.parseCollectionLiteralExpression
|
||||
*/
|
||||
private fun convertCollectionLiteralExpresion(expression: LighterASTNode): FirExpression {
|
||||
private fun convertCollectionLiteralExpression(expression: LighterASTNode): FirExpression {
|
||||
val firExpressionList = mutableListOf<FirExpression>()
|
||||
expression.forEachChildren {
|
||||
if (it.isExpression()) firExpressionList += getAsFirExpression<FirExpression>(it, "Incorrect collection literal argument")
|
||||
|
||||
Reference in New Issue
Block a user