diff --git a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/StubGenerator.kt b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/StubGenerator.kt index 870ce199dbe..98931af5440 100644 --- a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/StubGenerator.kt +++ b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/jvm/StubGenerator.kt @@ -971,7 +971,7 @@ class StubGenerator( } return this.isDefined || - this.generateAsFfiVarargs() || + this.isVararg || this.returnsRecord() || this.parameters.map { it.type }.any { it.unwrapTypedefs() is RecordType } }