From cc69f11e0da3c7a94d7f461c0c96e016df946338 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Mon, 30 Mar 2020 14:33:18 +0200 Subject: [PATCH] [cinterop][wasm][stub-gen] help inference to resolve which plus to use --- .../jetbrains/kotlin/native/interop/gen/wasm/StubGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/wasm/StubGenerator.kt b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/wasm/StubGenerator.kt index acff143f1c8..908f445c100 100644 --- a/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/wasm/StubGenerator.kt +++ b/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/wasm/StubGenerator.kt @@ -215,7 +215,7 @@ val Operation.wasmTypedReturnMapping get() = returnType.wasmTypedReturnMapping() val Attribute.wasmTypedReturnMapping get() = type.wasmTypedReturnMapping() -fun List.wasmTypedMapping() +fun List.wasmTypedMapping():List = this.map(Arg::wasmTypedMapping) // TODO: more complex return types, such as returning a pair of Ints