Fix misc typos in IR backends
This commit is contained in:
+1
-1
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user