Skip to content

Commit 881695d

Browse files
committed
Fix usage of protobufMessage.arguments in RpcStubGenerator
1 parent a2bcdc7 commit 881695d

File tree

1 file changed

+1
-1
lines changed
  • compiler-plugin/compiler-plugin-backend/src/main/kotlin/kotlinx/rpc/codegen/extension

1 file changed

+1
-1
lines changed

compiler-plugin/compiler-plugin-backend/src/main/kotlin/kotlinx/rpc/codegen/extension/RpcStubGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ internal class RpcStubGenerator(
12451245
val protobufMessage = owner.getAnnotation(ctx.withCodecAnnotation.owner.kotlinFqName)
12461246

12471247
return if (protobufMessage != null) {
1248-
val classReference = protobufMessage.arguments.single() as? IrClassReference
1248+
val classReference = vsApi{ protobufMessage.argumentsVS }.single() as? IrClassReference
12491249
?: error("Expected IrClassReference for ${ctx.withCodecAnnotation.owner.kotlinFqName} parameter")
12501250

12511251
val codec = classReference.classType

0 commit comments

Comments
 (0)