From d405a87512f8c325aca5fdb10ab5c05838cbd625 Mon Sep 17 00:00:00 2001 From: Vasily Levchenko Date: Mon, 16 Oct 2017 07:00:12 +0300 Subject: [PATCH] [interop] exludeFunctions should filter out the gloabls list too --- .../jetbrains/kotlin/native/interop/gen/jvm/StubGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e7870ff007e..93aa113f4d5 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 @@ -804,7 +804,7 @@ class StubGenerator( } } - nativeIndex.globals.forEach { + nativeIndex.globals.filter { it.name !in excludedFunctions }.forEach { try { stubs.add( GlobalVariableStub(it, this)