From 7e38685c955364666695728ef84d8367789eb475 Mon Sep 17 00:00:00 2001 From: Martin Petrov <357181+mpetrov@users.noreply.github.com> Date: Mon, 29 Apr 2019 06:52:46 -0400 Subject: [PATCH] Fix invalid isEqual swift_name. (#2923) Compiling frameworks currently produces the following warning: ``` ./hello.framework/Headers/hello.h:150:63: warning: 'swift_name' attribute has invalid identifier for parameter name [-Wswift-name-attribute] - (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(:)"))); ``` --- .../kotlin/backend/konan/objcexport/ObjCExportNamer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/objcexport/ObjCExportNamer.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/objcexport/ObjCExportNamer.kt index 8c2a89e6777..a39f4c9d436 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/objcexport/ObjCExportNamer.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/objcexport/ObjCExportNamer.kt @@ -389,7 +389,7 @@ internal class ObjCExportNamerImpl( methodSwiftNames.forceAssign(toString, "description()") methodSelectors.forceAssign(equals, "isEqual:") - methodSwiftNames.forceAssign(equals, "isEqual(:)") + methodSwiftNames.forceAssign(equals, "isEqual(_:)") } private fun FunctionDescriptor.getMangledName(forSwift: Boolean): String {