From f8b85e252be0941f8e71c4a75d1deda8dfea6fc9 Mon Sep 17 00:00:00 2001 From: Alexander Sysoev Date: Wed, 4 Dec 2024 17:35:42 +0100 Subject: [PATCH] Fix Kotlin master compilation --- .../src/main/core/kotlinx/rpc/codegen/VersionSpecificApi.kt | 1 + .../main/core/kotlinx/rpc/codegen/extension/RpcStubGenerator.kt | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler-plugin/compiler-plugin-backend/src/main/core/kotlinx/rpc/codegen/VersionSpecificApi.kt b/compiler-plugin/compiler-plugin-backend/src/main/core/kotlinx/rpc/codegen/VersionSpecificApi.kt index 5c5e36d72..52c7542cc 100644 --- a/compiler-plugin/compiler-plugin-backend/src/main/core/kotlinx/rpc/codegen/VersionSpecificApi.kt +++ b/compiler-plugin/compiler-plugin-backend/src/main/core/kotlinx/rpc/codegen/VersionSpecificApi.kt @@ -22,6 +22,7 @@ import org.jetbrains.kotlin.ir.symbols.IrSimpleFunctionSymbol import org.jetbrains.kotlin.ir.types.IrType import org.jetbrains.kotlin.platform.TargetPlatform +@Suppress("detekt.LongParameterList") interface VersionSpecificApi { fun isJs(platform: TargetPlatform?): Boolean fun isWasm(platform: TargetPlatform?): Boolean diff --git a/compiler-plugin/compiler-plugin-backend/src/main/core/kotlinx/rpc/codegen/extension/RpcStubGenerator.kt b/compiler-plugin/compiler-plugin-backend/src/main/core/kotlinx/rpc/codegen/extension/RpcStubGenerator.kt index 6fc673438..158788c12 100644 --- a/compiler-plugin/compiler-plugin-backend/src/main/core/kotlinx/rpc/codegen/extension/RpcStubGenerator.kt +++ b/compiler-plugin/compiler-plugin-backend/src/main/core/kotlinx/rpc/codegen/extension/RpcStubGenerator.kt @@ -434,7 +434,6 @@ internal class RpcStubGenerator( type = fieldType, callee = ctx.functions.lazyGetValue, typeArgumentsCount = 1, - valueArgumentsCount = 2, ).apply { putTypeArgument(0, fieldType) @@ -747,7 +746,6 @@ internal class RpcStubGenerator( callee = ctx.functions.rpcClientCall.symbol, type = method.function.returnType, typeArgumentsCount = 1, - valueArgumentsCount = 1, ).apply { dispatchReceiver = irCallProperty( clazz = stubClass,