[FIR] Fix typo
This commit is contained in:
committed by
Space Team
parent
93ee4d7ce7
commit
9187bbb710
+2
-2
@@ -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 -> {
|
||||
|
||||
Reference in New Issue
Block a user