Remove $ character from fake continuation parameter
The reason is that when it gets captured into the field having name $$continuation inliner fails with an exception as it skips fields starting with '$$' At the same time it doesn't really matter how to call that parameter because it's only visible in Java #KT-17585 In Progress #KT-16603 In Progress
This commit is contained in:
+1
-1
@@ -179,7 +179,7 @@ fun <D : FunctionDescriptor> getOrCreateJvmSuspendFunctionView(function: D, bind
|
||||
bindingContext?.get(CodegenBinding.SUSPEND_FUNCTION_TO_JVM_VIEW, function)?.let { return it as D }
|
||||
|
||||
val continuationParameter = ValueParameterDescriptorImpl(
|
||||
function, null, function.valueParameters.size, Annotations.EMPTY, Name.identifier("\$continuation"),
|
||||
function, null, function.valueParameters.size, Annotations.EMPTY, Name.identifier("continuation"),
|
||||
// Add j.l.Object to invoke(), because that is the type of parameters we have in FunctionN+1
|
||||
if (function.containingDeclaration.safeAs<ClassDescriptor>()?.defaultType?.isBuiltinFunctionalType == true)
|
||||
function.builtIns.nullableAnyType
|
||||
|
||||
Reference in New Issue
Block a user