[FIR] Fix typo

This commit is contained in:
Kirill Rakhman
2023-05-08 10:30:10 +02:00
committed by Space Team
parent 93ee4d7ce7
commit 9187bbb710
@@ -24,14 +24,14 @@ import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.psi.*
internal fun KtWhenCondition.toFirWhenCondition(
whenRefWithSibject: FirExpressionRef<FirWhenExpression>,
whenRefWithSubject: FirExpressionRef<FirWhenExpression>,
convert: KtExpression?.(String) -> FirExpression,
toFirOrErrorTypeRef: KtTypeReference?.() -> FirTypeRef,
): FirExpression {
val firSubjectSource = this.toKtPsiSourceElement(KtFakeSourceElementKind.WhenGeneratedSubject)
val firSubjectExpression = buildWhenSubjectExpression {
source = firSubjectSource
whenRef = whenRefWithSibject
whenRef = whenRefWithSubject
}
return when (this) {
is KtWhenConditionWithExpression -> {