Skip to content

Commit e98c845

Browse files
committed
Merge pull request opencv#18977 from Rightpoint:objc-collision-fix
2 parents e4ed1d0 + 29b453e commit e98c845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/objc/generator/gen_objc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ def get_swift_type(ctype):
570570
return swift_type
571571

572572
def build_swift_extension_decl(name, args, constructor, static, ret_type):
573-
extension_decl = ("class " if static else "") + (("func " + name) if not constructor else "convenience init") + "("
573+
extension_decl = "@nonobjc " + ("class " if static else "") + (("func " + name) if not constructor else "convenience init") + "("
574574
swift_args = []
575575
for a in args:
576576
if a.ctype not in type_dict:

0 commit comments

Comments
 (0)