Fix misc typos in IR backends

This commit is contained in:
Alexander Udalov
2019-03-26 17:08:26 +01:00
parent 6bd4d72b81
commit 4cb5a4fb6d
5 changed files with 5 additions and 5 deletions
@@ -213,7 +213,7 @@ internal class CallableReferenceLowering(val context: JvmBackendContext) : FileL
val lastParameterType = unboundCalleeParameters.lastOrNull()?.type
if ((lastParameterType as? IrSimpleType)?.classifier == continuationClass) {
// If the last parameter is Continuation<> inherit from SuspendFunction.
suspendFunctionClass = context.getIrClass(FqName("kotlin.Suspendfunction${numberOfParameters - 1}")).owner
suspendFunctionClass = context.getIrClass(FqName("kotlin.coroutines.SuspendFunction${numberOfParameters - 1}")).owner
val suspendFunctionClassTypeParameters = functionParameterTypes.dropLast(1) +
(lastParameterType.arguments.single() as IrTypeProjection).type
functionReferenceClassSuperTypes += IrSimpleTypeImpl(
@@ -245,6 +245,6 @@ class IrBuiltIns(
const val THROW_CCE = "THROW_CCE"
const val THROW_ISE = "THROW_ISE"
const val NO_WHEN_BRANCH_MATCHED_EXCEPTION = "noWhenBranchMatchedException"
const val ILLEGAL_ARGUMENT_EXCEPTION = "illegalArgumentException "
const val ILLEGAL_ARGUMENT_EXCEPTION = "illegalArgumentException"
}
}