```error: conflicting nullability specifier on par...
# kotlin-native
t
Copy code
error: conflicting nullability specifier on parameter types, 'nonnull' conflicts with existing specifier '_Nullable'
- (int32_t)compareToOther:(YOUMStdlibEnum *)other __attribute__((swift_name("compareTo(other:)")));
                                            ^
note: previous declaration is here
- (int32_t)compareToOther:(id _Nullable)other __attribute__((swift_name("compareTo(other:)")));
Copy code
@protocol YOUMStdlibComparable
@required
- (int32_t)compareToOther:(id _Nullable)other __attribute__((swift_name("compareTo(other:)")));
@end;

@interface YOUMStdlibEnum : KotlinBase <YOUMStdlibComparable>
- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer));
- (id)clone __attribute__((swift_name("clone()")));
- (int32_t)compareToOther:(YOUMStdlibEnum *)other __attribute__((swift_name("compareTo(other:)")));
@property (readonly) NSString *name;
@property (readonly) int32_t ordinal;
@end;
Is it a known problem? Maybe some workaround?
s
It should be a warning. Which Xcode version do you use?
t
9.3. Looks like warnings are just forbidden in project, but I need to re-check. But this issue should be fixed anyway (or at least suppressed).
🆗 1