diff --git a/kotlin-native/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/ObjCStubs.kt b/kotlin-native/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/ObjCStubs.kt index f0a0570b26f..82f741af6d0 100644 --- a/kotlin-native/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/ObjCStubs.kt +++ b/kotlin-native/Interop/StubGenerator/src/main/kotlin/org/jetbrains/kotlin/native/interop/gen/ObjCStubs.kt @@ -558,7 +558,7 @@ internal class ObjCCategoryStubBuilder( val description = "${category.clazz.name} (${category.name})" val meta = StubContainerMeta( "// @interface $description", - "// @end; // $description" + "// @end // $description" ) val container = SimpleStubContainer( meta = meta, diff --git a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/objcexport/StubRenderer.kt b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/objcexport/StubRenderer.kt index 3145892d491..d28ab3e3530 100644 --- a/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/objcexport/StubRenderer.kt +++ b/kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/objcexport/StubRenderer.kt @@ -50,7 +50,7 @@ object StubRenderer { +renderProtocolHeader() +"@required" renderMembers(this, shouldExportKDoc) - +"@end;" + +"@end" } is ObjCInterface -> { attributes.forEach { @@ -58,7 +58,7 @@ object StubRenderer { } +renderInterfaceHeader() renderMembers(this, shouldExportKDoc) - +"@end;" + +"@end" } is ObjCMethod -> { +renderMethod(this) diff --git a/kotlin-native/backend.native/tests/interop/objc/kt48816/objclib.h b/kotlin-native/backend.native/tests/interop/objc/kt48816/objclib.h index 783eca32a8f..eb10cfce69c 100644 --- a/kotlin-native/backend.native/tests/interop/objc/kt48816/objclib.h +++ b/kotlin-native/backend.native/tests/interop/objc/kt48816/objclib.h @@ -3,7 +3,7 @@ #import @interface MyClass1 : NSObject -@end; +@end @interface MyClass2 : NSObject -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/msg_send/messaging.h b/kotlin-native/backend.native/tests/interop/objc/msg_send/messaging.h index bb80a427d26..f234b928bf7 100644 --- a/kotlin-native/backend.native/tests/interop/objc/msg_send/messaging.h +++ b/kotlin-native/backend.native/tests/interop/objc/msg_send/messaging.h @@ -8,7 +8,7 @@ + (double)doubleFn; + (simd_float4)simdFn; -@end; +@end typedef struct { float f; @@ -65,4 +65,4 @@ typedef struct { + (GeterogeneousSmall)geterogeneousSmallFn; -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/msg_send/messaging.m b/kotlin-native/backend.native/tests/interop/objc/msg_send/messaging.m index 6c82209321f..df6a286103f 100644 --- a/kotlin-native/backend.native/tests/interop/objc/msg_send/messaging.m +++ b/kotlin-native/backend.native/tests/interop/objc/msg_send/messaging.m @@ -23,7 +23,7 @@ return v; } -@end; +@end @implementation AggregateTestSubject @@ -78,4 +78,4 @@ return (simd_quatf){ {1, 4, 9, 25} }; } -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/smoke.h b/kotlin-native/backend.native/tests/interop/objc/smoke.h index b651871bfc8..3127def0858 100644 --- a/kotlin-native/backend.native/tests/interop/objc/smoke.h +++ b/kotlin-native/backend.native/tests/interop/objc/smoke.h @@ -7,7 +7,7 @@ @protocol Printer; @protocol Empty -@end; +@end @protocol Forward; @class Forward; @@ -20,16 +20,16 @@ typedef NSString NSStringTypedef; @interface Foo : NSObject @property NSStringTypedef* name; -(void)helloWithPrinter:(id )printer; -@end; +@end @interface Foo (FooExtensions) -(void)hello; -@end; +@end @protocol Printer @required -(void)print:(const char*)string; -@end; +@end @protocol MutablePair @required @@ -39,7 +39,7 @@ typedef NSString NSStringTypedef; -(void)update:(int)index add:(int)delta; -(void)update:(int)index sub:(int)delta; -@end; +@end void replacePairElements(id pair, int first, int second); @@ -70,7 +70,7 @@ typedef NS_ENUM(int32_t, ForwardDeclaredEnum) { @protocol ObjectFactory @required -(id)create; -@end; +@end id createObjectWithFactory(id factory) { return [factory create]; @@ -82,15 +82,15 @@ id createObjectWithFactory(id factory) { -(void)consume:(id) __attribute__((ns_consumed)) obj; -(void)consumeSelf __attribute__((ns_consumes_self)); -(void (^)(void))returnRetainedBlock:(void (^)(void))block __attribute__((ns_returns_retained)); -@end; +@end extern BOOL unexpectedDeallocation; @interface MustNotBeDeallocated : NSObject -@end; +@end @interface CustomRetainMethodsImpl : MustNotBeDeallocated -@end; +@end static MustNotBeDeallocated* retainedObj; static void (^retainedBlock)(void); diff --git a/kotlin-native/backend.native/tests/interop/objc/smoke.m b/kotlin-native/backend.native/tests/interop/objc/smoke.m index 08504da42a0..ea37ccd768b 100644 --- a/kotlin-native/backend.native/tests/interop/objc/smoke.m +++ b/kotlin-native/backend.native/tests/interop/objc/smoke.m @@ -4,14 +4,14 @@ @interface CPrinter : NSObject -(void)print:(const char*)string; -@end; +@end @implementation CPrinter -(void)print:(const char*)string { printf("%s\n", string); fflush(stdout); } -@end; +@end @implementation Foo @@ -33,7 +33,7 @@ printf("Deallocated\n"); } -@end; +@end @implementation Foo (FooExtensions) @@ -41,7 +41,7 @@ CPrinter* printer = [[CPrinter alloc] init]; [self helloWithPrinter:printer]; } -@end; +@end void replacePairElements(id pair, int first, int second) { [pair update:0 add:(first - pair.first)]; @@ -75,7 +75,7 @@ BOOL unexpectedDeallocation = NO; -(void)dealloc { unexpectedDeallocation = YES; } -@end; +@end static CustomRetainMethodsImpl* retainedCustomRetainMethodsImpl; @@ -94,4 +94,4 @@ static CustomRetainMethodsImpl* retainedCustomRetainMethodsImpl; -(void (^)(void))returnRetainedBlock:(void (^)(void))block __attribute__((ns_returns_retained)) { return block; } -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/KT37067_prefix.h b/kotlin-native/backend.native/tests/interop/objc/tests/KT37067_prefix.h index f6b9d121009..7bd6697020f 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/KT37067_prefix.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/KT37067_prefix.h @@ -8,5 +8,5 @@ @property (nonatomic, readonly) NSObject *copyValue; @property (nonatomic, readonly) NSObject *mutableCopyValue; -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/KT37067_prefix.m b/kotlin-native/backend.native/tests/interop/objc/tests/KT37067_prefix.m index 1fa807e8f04..ad4c1fcaffd 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/KT37067_prefix.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/KT37067_prefix.m @@ -17,4 +17,4 @@ return nil; } -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/KT38234_override.h b/kotlin-native/backend.native/tests/interop/objc/tests/KT38234_override.h index 8a1561d8513..2db81b61015 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/KT38234_override.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/KT38234_override.h @@ -2,8 +2,8 @@ @protocol KT38234_P1 -(int)foo; -@end; +@end @interface KT38234_Base : NSObject -(int)callFoo; -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/KT38234_override.m b/kotlin-native/backend.native/tests/interop/objc/tests/KT38234_override.m index 675baa38af0..04dcc20ed81 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/KT38234_override.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/KT38234_override.m @@ -7,4 +7,4 @@ -(int)callFoo { return [self foo]; } -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/allocNoRetain.h b/kotlin-native/backend.native/tests/interop/objc/tests/allocNoRetain.h index 313ef9b0ada..92be722ab15 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/allocNoRetain.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/allocNoRetain.h @@ -2,4 +2,4 @@ @interface TestAllocNoRetain : NSObject @property BOOL ok; -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/allocNoRetain.m b/kotlin-native/backend.native/tests/interop/objc/tests/allocNoRetain.m index 122ccb9be0e..4c31b0c53c1 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/allocNoRetain.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/allocNoRetain.m @@ -11,4 +11,4 @@ } return self; } -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/blocks.h b/kotlin-native/backend.native/tests/interop/objc/tests/blocks.h index 585827fb2f3..dd5627a5743 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/blocks.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/blocks.h @@ -3,7 +3,7 @@ @protocol BlockProvider @required -(int (^)(int)) block; -@end; +@end int callProvidedBlock(id blockProvider, int argument) { return [blockProvider block](argument); @@ -12,7 +12,7 @@ int callProvidedBlock(id blockProvider, int argument) { @protocol BlockConsumer @required -(int)callBlock:(int (^)(int))block argument:(int)argument; -@end; +@end int callPlusOneBlock(id blockConsumer, int argument) { return [blockConsumer callBlock:^int(int p) { return p + 1; } argument:argument]; @@ -24,4 +24,4 @@ int callPlusOneBlock(id blockConsumer, int argument) { @property (class) void (^nullBlock)(void); @property (class) void (^notNullBlock)(void); -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/blocks.m b/kotlin-native/backend.native/tests/interop/objc/tests/blocks.m index bb32316a1a3..51423c8c53e 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/blocks.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/blocks.m @@ -17,4 +17,4 @@ return ^{}; } -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/callableReferences.h b/kotlin-native/backend.native/tests/interop/objc/tests/callableReferences.h index 90af865e4e4..701592350df 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/callableReferences.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/callableReferences.h @@ -4,4 +4,4 @@ @property int value; - (int)instanceMethod; + (int)classMethod:(int)first :(int)second; -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/callableReferences.m b/kotlin-native/backend.native/tests/interop/objc/tests/callableReferences.m index 17a7b232559..28fd7d4d871 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/callableReferences.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/callableReferences.m @@ -8,4 +8,4 @@ + (int)classMethod:(int)first :(int)second { return first + second; } -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/clashingWithAny.h b/kotlin-native/backend.native/tests/interop/objc/tests/clashingWithAny.h index 897e408528a..c381d31afb8 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/clashingWithAny.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/clashingWithAny.h @@ -6,17 +6,17 @@ -(NSString*)toString_; -(int)hashCode; -(BOOL)equals:(id _Nullable)other; -@end; +@end @interface TestClashingWithAny2 : NSObject -(void)toString; -(void)hashCode; -(void)equals:(int)p; // May clash. -@end; +@end @interface TestClashingWithAny3 : NSObject // Not clashing actually. -(NSString*)toString:(int)p; -(int)hashCode:(int)p; -(BOOL)equals; -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/clashingWithAny.m b/kotlin-native/backend.native/tests/interop/objc/tests/clashingWithAny.m index 789bd5baa8e..22681dd0cd7 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/clashingWithAny.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/clashingWithAny.m @@ -24,7 +24,7 @@ -(BOOL)equals:(id _Nullable)other { return YES; } -@end; +@end @implementation TestClashingWithAny2 -(NSString*)description { @@ -43,7 +43,7 @@ -(void)equals:(int)p { } -@end; +@end @implementation TestClashingWithAny3 -(NSString*)description { @@ -65,4 +65,4 @@ -(BOOL)equals { return YES; } -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/constructorReturnsNull.h b/kotlin-native/backend.native/tests/interop/objc/tests/constructorReturnsNull.h index 25b079f5a95..3c15443b549 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/constructorReturnsNull.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/constructorReturnsNull.h @@ -2,4 +2,4 @@ @interface TestConstructorReturnsNull : NSObject - (instancetype)init; -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/constructorReturnsNull.m b/kotlin-native/backend.native/tests/interop/objc/tests/constructorReturnsNull.m index 07a6116f0dd..3c413d40979 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/constructorReturnsNull.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/constructorReturnsNull.m @@ -4,4 +4,4 @@ - (instancetype)init { return nil; } -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/customString.h b/kotlin-native/backend.native/tests/interop/objc/tests/customString.h index 1e3078b0ee7..a3f98568c26 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/customString.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/customString.h @@ -3,7 +3,7 @@ @interface CustomString : NSString - (instancetype)initWithValue:(int)value; @property int value; -@end; +@end CustomString* _Nonnull createCustomString(int value) { return [[CustomString alloc] initWithValue:value]; diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/customString.m b/kotlin-native/backend.native/tests/interop/objc/tests/customString.m index 1a03f684ca9..182067e7d06 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/customString.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/customString.m @@ -29,4 +29,4 @@ BOOL customStringDeallocated = NO; - (void)dealloc { customStringDeallocated = YES; } -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/exceptions.h b/kotlin-native/backend.native/tests/interop/objc/tests/exceptions.h index 8350db2d591..f6342aab17c 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/exceptions.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/exceptions.h @@ -2,8 +2,8 @@ @protocol ExceptionThrower -(void)throwException; -@end; +@end @interface ExceptionThrowerManager : NSObject +(void)throwExceptionWith:(id)thrower; -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/exceptions.m b/kotlin-native/backend.native/tests/interop/objc/tests/exceptions.m index 1154f23d56f..ed969a4690a 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/exceptions.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/exceptions.m @@ -4,4 +4,4 @@ +(void)throwExceptionWith:(id)thrower { [thrower throwException]; } -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/initWithCustomSelector.h b/kotlin-native/backend.native/tests/interop/objc/tests/initWithCustomSelector.h index 47d026e2259..f299456acfa 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/initWithCustomSelector.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/initWithCustomSelector.h @@ -5,4 +5,4 @@ @property BOOL custom; +(instancetype _Nonnull)createCustom; -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/initWithCustomSelector.m b/kotlin-native/backend.native/tests/interop/objc/tests/initWithCustomSelector.m index 0e5edee5823..de0668aab9e 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/initWithCustomSelector.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/initWithCustomSelector.m @@ -20,4 +20,4 @@ return [[self alloc] initCustom]; } -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/kt38850.h b/kotlin-native/backend.native/tests/interop/objc/tests/kt38850.h index bd746cf2ccf..40deda3e7f7 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/kt38850.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/kt38850.h @@ -5,6 +5,6 @@ NS_ASSUME_NONNULL_BEGIN @interface KT38850Color : NSObject +(instancetype)blackColor; @property NSString* name; -@end; +@end NS_ASSUME_NONNULL_END diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/kt38850.m b/kotlin-native/backend.native/tests/interop/objc/tests/kt38850.m index 2fa2d540ba4..52eb3dce68b 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/kt38850.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/kt38850.m @@ -6,4 +6,4 @@ result.name = @"black"; return result; } -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/kt41811.h b/kotlin-native/backend.native/tests/interop/objc/tests/kt41811.h index 724c4e55b40..ed41355e86f 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/kt41811.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/kt41811.h @@ -3,22 +3,22 @@ extern BOOL deallocRetainReleaseDeallocated; @interface DeallocRetainRelease : NSObject -@end; +@end extern DeallocRetainRelease* globalDeallocRetainRelease; @protocol WeakReference @required @property (weak) id referent; -@end; +@end @interface ObjCWeakReference : NSObject @property (weak) id referent; -@end; +@end extern id weakDeallocLoadWeak; extern BOOL deallocLoadWeakDeallocated; @interface DeallocLoadWeak : NSObject -(void)checkWeak; -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/kt41811.m b/kotlin-native/backend.native/tests/interop/objc/tests/kt41811.m index 0a7335df931..bd65e9677d0 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/kt41811.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/kt41811.m @@ -13,12 +13,12 @@ BOOL deallocRetainReleaseDeallocated = NO; assert(!deallocRetainReleaseDeallocated); deallocRetainReleaseDeallocated = YES; } -@end; +@end DeallocRetainRelease* globalDeallocRetainRelease = nil; @implementation ObjCWeakReference -@end; +@end id weakDeallocLoadWeak = nil; BOOL deallocLoadWeakDeallocated = NO; @@ -36,4 +36,4 @@ BOOL deallocLoadWeakDeallocated = NO; assert(!deallocLoadWeakDeallocated); deallocLoadWeakDeallocated = YES; } -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/kt42482.h b/kotlin-native/backend.native/tests/interop/objc/tests/kt42482.h index d5f92e43e9b..c5d26f19acc 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/kt42482.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/kt42482.h @@ -5,6 +5,6 @@ extern id kt42482Global; @interface KT42482 : NSObject -(int)fortyTwo; -@end; +@end void kt42482Swizzle(id obj); diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/kt42482.m b/kotlin-native/backend.native/tests/interop/objc/tests/kt42482.m index e4f8735a8d2..130e519586b 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/kt42482.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/kt42482.m @@ -13,7 +13,7 @@ id kt42482Global = nil; -(void)dealloc { kt42482Deallocated = YES; } -@end; +@end int fortyTwoSwizzledImp(id self, SEL _cmd) { return 43; diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/kt49455.h b/kotlin-native/backend.native/tests/interop/objc/tests/kt49455.h index faae9d01ce7..4d227a16b7b 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/kt49455.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/kt49455.h @@ -3,7 +3,7 @@ // https://youtrack.jetbrains.com/issue/KT-49455 @interface KT49455 : NSObject -@end; +@end __attribute__((external_source_symbol(language="Swift", defined_in="sample",generated_declaration))) @interface KT49455 (KT49455Ext) diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/kt49455.m b/kotlin-native/backend.native/tests/interop/objc/tests/kt49455.m index 54e2d743b07..22362dbdd08 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/kt49455.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/kt49455.m @@ -1,7 +1,7 @@ #import "kt49455.h" @implementation KT49455 -@end; +@end @implementation KT49455 (KT49455Ext) - (int)extensionFunction { diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/mangling.h b/kotlin-native/backend.native/tests/interop/objc/tests/mangling.h index a4a7868b52b..95f3a8da262 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/mangling.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/mangling.h @@ -18,8 +18,8 @@ struct MyStruct myStruct = {11, 12, 13, 14}; @protocol Proto @property int Companion; // clash on implementing -@end; +@end @interface FooMangled : NSObject //- (void) CompanionS; // mangleSimple does not support this: it may clash after mangling -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/mangling.m b/kotlin-native/backend.native/tests/interop/objc/tests/mangling.m index 90f6b717b97..0e7d1544a02 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/mangling.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/mangling.m @@ -3,4 +3,4 @@ // [KT-36067] mangling @implementation FooMangled : NSObject @synthesize Companion; -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/multipleInheritanceClash.h b/kotlin-native/backend.native/tests/interop/objc/tests/multipleInheritanceClash.h index a1f25e029f0..193f5ba6f5e 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/multipleInheritanceClash.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/multipleInheritanceClash.h @@ -2,16 +2,16 @@ @interface MultipleInheritanceClashBase : NSObject @property (nonnull) MultipleInheritanceClashBase* delegate; -@end; +@end @protocol MultipleInheritanceClash @optional @property (nullable) id delegate; -@end; +@end @interface MultipleInheritanceClash1 : MultipleInheritanceClashBase -@end; +@end @interface MultipleInheritanceClash2 : MultipleInheritanceClashBase @property MultipleInheritanceClashBase* delegate; -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/multipleInheritanceClash.m b/kotlin-native/backend.native/tests/interop/objc/tests/multipleInheritanceClash.m index 5586cfbf12c..dd5dea7b7b4 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/multipleInheritanceClash.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/multipleInheritanceClash.m @@ -1,10 +1,10 @@ #import "multipleInheritanceClash.h" @implementation MultipleInheritanceClashBase -@end; +@end @implementation MultipleInheritanceClash1 -@end; +@end @implementation MultipleInheritanceClash2 -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/objcWeakRefs.h b/kotlin-native/backend.native/tests/interop/objc/tests/objcWeakRefs.h index 15ff66dd4cf..be9b73fe364 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/objcWeakRefs.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/objcWeakRefs.h @@ -4,10 +4,10 @@ @interface DeallocExecutor : NSObject @property DeallocListener* deallocListener; -@end; +@end @interface DeallocListener : NSObject @property (weak) DeallocExecutor* deallocExecutor; @property BOOL deallocated; -(BOOL)deallocExecutorIsNil; -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/objcWeakRefs.m b/kotlin-native/backend.native/tests/interop/objc/tests/objcWeakRefs.m index 42c2ee9fa16..b8a053960bf 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/objcWeakRefs.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/objcWeakRefs.m @@ -4,10 +4,10 @@ -(void)dealloc { self.deallocListener.deallocated = YES; } -@end; +@end @implementation DeallocListener -(BOOL)deallocExecutorIsNil { return self.deallocExecutor == nil; } -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/overrideInit.h b/kotlin-native/backend.native/tests/interop/objc/tests/overrideInit.h index 85a3624822e..955d2775262 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/overrideInit.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/overrideInit.h @@ -3,4 +3,4 @@ @interface TestOverrideInit : NSObject -(instancetype)initWithValue:(int)value NS_DESIGNATED_INITIALIZER; +(instancetype)createWithValue:(int)value; -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/overrideInit.m b/kotlin-native/backend.native/tests/interop/objc/tests/overrideInit.m index 34321177d18..63a81b6931d 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/overrideInit.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/overrideInit.m @@ -8,4 +8,4 @@ +(instancetype)createWithValue:(int)value { return [[self alloc] initWithValue:value]; } -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/tryRetainGC.h b/kotlin-native/backend.native/tests/interop/objc/tests/tryRetainGC.h index e86f91d4ff5..de5261bc2a5 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/tryRetainGC.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/tryRetainGC.h @@ -3,4 +3,4 @@ @interface WeakRefHolder : NSObject @property (weak) id obj; -(void)loadManyTimes; -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/tryRetainGC.m b/kotlin-native/backend.native/tests/interop/objc/tests/tryRetainGC.m index b89c9ba26db..152bee4696a 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/tryRetainGC.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/tryRetainGC.m @@ -8,4 +8,4 @@ [array addObject:self.obj]; } } -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/varargs.h b/kotlin-native/backend.native/tests/interop/objc/tests/varargs.h index 113844b27ed..d9401493f10 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/varargs.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/varargs.h @@ -7,14 +7,14 @@ +(NSString* _Nonnull)stringWithFormat:(NSString*)format, ...; +(NSObject* _Nonnull)stringWithFormat:(NSString*)format args:(void*)args; -@end; +@end @interface TestVarargs (TestVarargsExtension) -(instancetype _Nonnull)initWithFormat:(NSString*)format, ...; -@end; +@end @interface TestVarargsSubclass : TestVarargs // Test clashes: -(instancetype _Nonnull)initWithFormat:(NSString*)format args:(void*)args; +(NSString* _Nonnull)stringWithFormat:(NSString*)format args:(void*)args; -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/varargs.m b/kotlin-native/backend.native/tests/interop/objc/tests/varargs.m index 4b9e0b41cb0..fcc73bf6891 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/varargs.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/varargs.m @@ -38,7 +38,7 @@ abort(); } -@end; +@end @implementation TestVarargsSubclass -(instancetype _Nonnull)initWithFormat:(NSString*)format args:(void*)args { @@ -48,4 +48,4 @@ +(NSString* _Nonnull)stringWithFormat:(NSString*)format args:(void*)args { abort(); } -@end; \ No newline at end of file +@end \ No newline at end of file diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/workerAutoreleasePool.h b/kotlin-native/backend.native/tests/interop/objc/tests/workerAutoreleasePool.h index 0bbf79860ef..d51b7fb13c9 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/workerAutoreleasePool.h +++ b/kotlin-native/backend.native/tests/interop/objc/tests/workerAutoreleasePool.h @@ -2,8 +2,8 @@ @interface CreateAutoreleaseDeallocated : NSObject @property BOOL value; -@end; +@end @interface CreateAutorelease : NSObject +(void)createAutorelease:(CreateAutoreleaseDeallocated*)deallocated; -@end; +@end diff --git a/kotlin-native/backend.native/tests/interop/objc/tests/workerAutoreleasePool.m b/kotlin-native/backend.native/tests/interop/objc/tests/workerAutoreleasePool.m index 24de2a771ea..e414c03d251 100644 --- a/kotlin-native/backend.native/tests/interop/objc/tests/workerAutoreleasePool.m +++ b/kotlin-native/backend.native/tests/interop/objc/tests/workerAutoreleasePool.m @@ -1,7 +1,7 @@ #import "workerAutoreleasePool.h" @implementation CreateAutoreleaseDeallocated -@end; +@end @implementation CreateAutorelease { CreateAutoreleaseDeallocated* deallocated; @@ -17,4 +17,4 @@ -(void)dealloc { deallocated.value = YES; } -@end; +@end diff --git a/kotlin-native/backend.native/tests/objcexport/expectedLazy.h b/kotlin-native/backend.native/tests/objcexport/expectedLazy.h index 27fb862d28d..4d597fa644c 100644 --- a/kotlin-native/backend.native/tests/objcexport/expectedLazy.h +++ b/kotlin-native/backend.native/tests/objcexport/expectedLazy.h @@ -3,22 +3,22 @@ __attribute__((swift_name("KotlinBase"))) - (instancetype)init __attribute__((unavailable)); + (instancetype)new __attribute__((unavailable)); + (void)initialize __attribute__((objc_requires_super)); -@end; +@end @interface KtBase (KtBaseCopying) -@end; +@end __attribute__((swift_name("KotlinMutableSet"))) @interface KtMutableSet : NSMutableSet -@end; +@end __attribute__((swift_name("KotlinMutableDictionary"))) @interface KtMutableDictionary : NSMutableDictionary -@end; +@end @interface NSError (NSErrorKtKotlinException) @property (readonly) id _Nullable kotlinException; -@end; +@end __attribute__((swift_name("KotlinNumber"))) @interface KtNumber : NSNumber @@ -52,73 +52,73 @@ __attribute__((swift_name("KotlinNumber"))) + (instancetype)numberWithBool:(BOOL)value __attribute__((unavailable)); + (instancetype)numberWithInteger:(NSInteger)value __attribute__((unavailable)); + (instancetype)numberWithUnsignedInteger:(NSUInteger)value __attribute__((unavailable)); -@end; +@end __attribute__((swift_name("KotlinByte"))) @interface KtByte : KtNumber - (instancetype)initWithChar:(char)value; + (instancetype)numberWithChar:(char)value; -@end; +@end __attribute__((swift_name("KotlinUByte"))) @interface KtUByte : KtNumber - (instancetype)initWithUnsignedChar:(unsigned char)value; + (instancetype)numberWithUnsignedChar:(unsigned char)value; -@end; +@end __attribute__((swift_name("KotlinShort"))) @interface KtShort : KtNumber - (instancetype)initWithShort:(short)value; + (instancetype)numberWithShort:(short)value; -@end; +@end __attribute__((swift_name("KotlinUShort"))) @interface KtUShort : KtNumber - (instancetype)initWithUnsignedShort:(unsigned short)value; + (instancetype)numberWithUnsignedShort:(unsigned short)value; -@end; +@end __attribute__((swift_name("KotlinInt"))) @interface KtInt : KtNumber - (instancetype)initWithInt:(int)value; + (instancetype)numberWithInt:(int)value; -@end; +@end __attribute__((swift_name("KotlinUInt"))) @interface KtUInt : KtNumber - (instancetype)initWithUnsignedInt:(unsigned int)value; + (instancetype)numberWithUnsignedInt:(unsigned int)value; -@end; +@end __attribute__((swift_name("KotlinLong"))) @interface KtLong : KtNumber - (instancetype)initWithLongLong:(long long)value; + (instancetype)numberWithLongLong:(long long)value; -@end; +@end __attribute__((swift_name("KotlinULong"))) @interface KtULong : KtNumber - (instancetype)initWithUnsignedLongLong:(unsigned long long)value; + (instancetype)numberWithUnsignedLongLong:(unsigned long long)value; -@end; +@end __attribute__((swift_name("KotlinFloat"))) @interface KtFloat : KtNumber - (instancetype)initWithFloat:(float)value; + (instancetype)numberWithFloat:(float)value; -@end; +@end __attribute__((swift_name("KotlinDouble"))) @interface KtDouble : KtNumber - (instancetype)initWithDouble:(double)value; + (instancetype)numberWithDouble:(double)value; -@end; +@end __attribute__((swift_name("KotlinBoolean"))) @interface KtBoolean : KtNumber - (instancetype)initWithBool:(BOOL)value; + (instancetype)numberWithBool:(BOOL)value; -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("CoroutineException"))) @@ -128,7 +128,7 @@ __attribute__((swift_name("CoroutineException"))) - (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithCause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithMessage:(NSString * _Nullable)message cause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ContinuationHolder"))) @@ -137,7 +137,7 @@ __attribute__((swift_name("ContinuationHolder"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (void)resumeValue:(T _Nullable)value __attribute__((swift_name("resume(value:)"))); - (void)resumeWithExceptionException:(KtKotlinThrowable *)exception __attribute__((swift_name("resumeWithException(exception:)"))); -@end; +@end __attribute__((swift_name("SuspendFun"))) @protocol KtSuspendFun @@ -148,7 +148,7 @@ __attribute__((swift_name("SuspendFun"))) Other uncaught Kotlin exceptions are fatal. */ - (void)suspendFunDoYield:(BOOL)doYield doThrow:(BOOL)doThrow completionHandler:(void (^)(KtInt * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("suspendFun(doYield:doThrow:completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ResultHolder"))) @@ -158,7 +158,7 @@ __attribute__((swift_name("ResultHolder"))) @property int32_t completed __attribute__((swift_name("completed"))); @property T _Nullable result __attribute__((swift_name("result"))); @property KtKotlinThrowable * _Nullable exception __attribute__((swift_name("exception"))); -@end; +@end __attribute__((swift_name("SuspendBridge"))) @protocol KtSuspendBridge @@ -213,7 +213,7 @@ __attribute__((swift_name("SuspendBridge"))) @note This method converts all Kotlin exceptions to errors. */ - (void)nothingAsUnitValue:(id _Nullable)value completionHandler:(void (^)(NSError * _Nullable))completionHandler __attribute__((swift_name("nothingAsUnit(value:completionHandler:)"))); -@end; +@end __attribute__((swift_name("AbstractSuspendBridge"))) @interface KtAbstractSuspendBridge : KtBase @@ -258,13 +258,13 @@ __attribute__((swift_name("AbstractSuspendBridge"))) @note This method converts all Kotlin exceptions to errors. */ - (void)nothingAsUnitValue:(KtInt *)value completionHandler:(void (^)(NSError * _Nullable))completionHandler __attribute__((swift_name("nothingAsUnit(value:completionHandler:)"))); -@end; +@end __attribute__((swift_name("ThrowCancellationException"))) @interface KtThrowCancellationException : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ThrowCancellationExceptionImpl"))) @@ -277,7 +277,7 @@ __attribute__((swift_name("ThrowCancellationExceptionImpl"))) Other uncaught Kotlin exceptions are fatal. */ - (void)throwCancellationExceptionWithCompletionHandler:(void (^)(NSError * _Nullable))completionHandler __attribute__((swift_name("throwCancellationException(completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("suspendFunctionChild0"))) @@ -290,7 +290,7 @@ __attribute__((swift_name("suspendFunctionChild0"))) Other uncaught Kotlin exceptions are fatal. */ - (void)invokeWithCompletionHandler:(void (^)(NSString * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("invoke(completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("suspendFunctionChild1"))) @@ -303,7 +303,7 @@ __attribute__((swift_name("suspendFunctionChild1"))) Other uncaught Kotlin exceptions are fatal. */ - (void)invokeP1:(NSString *)s completionHandler:(void (^)(NSString * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("invoke(p1:completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("CoroutinesKt"))) @@ -383,7 +383,7 @@ __attribute__((swift_name("CoroutinesKt"))) + (id)getKSuspendCallableReference0 __attribute__((swift_name("getKSuspendCallableReference0()"))); + (id)getKSuspendCallableReference1 __attribute__((swift_name("getKSuspendCallableReference1()"))); + (void)gc __attribute__((swift_name("gc()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DataClassWithComponentMethods"))) @@ -397,7 +397,7 @@ __attribute__((swift_name("DataClassWithComponentMethods"))) - (KtDataClassWithComponentMethods *)doCopyX:(int32_t)x y:(int32_t)y __attribute__((swift_name("doCopy(x:y:)"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); @property (readonly) int32_t y __attribute__((swift_name("y"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("RegularClassWithComponentMethods"))) @@ -406,27 +406,27 @@ __attribute__((swift_name("RegularClassWithComponentMethods"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)component1 __attribute__((swift_name("component1()"))); - (int32_t)component3 __attribute__((swift_name("component3()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DataClassComponentMethodsKt"))) @interface KtDataClassComponentMethodsKt : KtBase + (int32_t)component1 __attribute__((swift_name("component1()"))); + (int32_t)component4 __attribute__((swift_name("component4()"))); -@end; +@end __attribute__((swift_name("DeallocRetainBase"))) @interface KtDeallocRetainBase : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DeallocRetainKt"))) @interface KtDeallocRetainKt : KtBase + (void)garbageCollect __attribute__((swift_name("garbageCollect()"))); + (KtKotlinWeakReference *)createWeakReferenceValue:(id)value __attribute__((swift_name("createWeakReference(value:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("EnumLeftRightUpDown"))) @@ -439,7 +439,7 @@ __attribute__((swift_name("EnumLeftRightUpDown"))) @property (class, readonly) KtEnumLeftRightUpDown *up __attribute__((swift_name("up"))); @property (class, readonly) KtEnumLeftRightUpDown *down __attribute__((swift_name("down"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("EnumOneTwoThreeValues"))) @@ -452,7 +452,7 @@ __attribute__((swift_name("EnumOneTwoThreeValues"))) @property (class, readonly) KtEnumOneTwoThreeValues *three __attribute__((swift_name("three"))); @property (class, readonly) KtEnumOneTwoThreeValues *values __attribute__((swift_name("values"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("EnumValuesValues_"))) @@ -463,7 +463,7 @@ __attribute__((swift_name("EnumValuesValues_"))) @property (class, readonly) KtEnumValuesValues_ *values __attribute__((swift_name("values"))); @property (class, readonly) KtEnumValuesValues_ *values __attribute__((swift_name("values"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("EmptyEnum"))) @@ -472,27 +472,27 @@ __attribute__((swift_name("EmptyEnum"))) + (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); - (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((swift_name("FunInterface"))) @protocol KtFunInterface @required - (int32_t)run __attribute__((swift_name("run()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("FunInterfacesKt"))) @interface KtFunInterfacesKt : KtBase + (id)getObject __attribute__((swift_name("getObject()"))); + (id)getLambda __attribute__((swift_name("getLambda()"))); -@end; +@end __attribute__((swift_name("FHolder"))) @interface KtFHolder : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) id _Nullable value __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("F2Holder"))) @@ -501,7 +501,7 @@ __attribute__((swift_name("F2Holder"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); + (instancetype)new __attribute__((unavailable)); @property (readonly) id _Nullable (^value)(id _Nullable, id _Nullable) __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("F32Holder"))) @@ -510,7 +510,7 @@ __attribute__((swift_name("F32Holder"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); + (instancetype)new __attribute__((unavailable)); @property (readonly) id _Nullable (^value)(id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable) __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("F33Holder"))) @@ -519,7 +519,7 @@ __attribute__((swift_name("F33Holder"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); + (instancetype)new __attribute__((unavailable)); @property (readonly) id value __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("FunctionalTypesKt"))) @@ -540,80 +540,80 @@ __attribute__((swift_name("FunctionalTypesKt"))) + (id _Nullable (^)(id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable))getStaticTypeRef33 __attribute__((swift_name("getStaticTypeRef33()"))); + (KtF33Holder *)getDynTypeLambda33 __attribute__((swift_name("getDynTypeLambda33()"))); + (id _Nullable (^)(id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable))getStaticTypeLambda33 __attribute__((swift_name("getStaticTypeLambda33()"))); -@end; +@end __attribute__((swift_name("GH4002ArgumentBase"))) @interface KtGH4002ArgumentBase : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH4002Argument"))) @interface KtGH4002Argument : KtGH4002ArgumentBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestIncompatiblePropertyTypeWarning"))) @interface KtTestIncompatiblePropertyTypeWarning : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestIncompatiblePropertyTypeWarningGeneric"))) @interface KtTestIncompatiblePropertyTypeWarningGeneric : KtBase - (instancetype)initWithValue:(T _Nullable)value __attribute__((swift_name("init(value:)"))) __attribute__((objc_designated_initializer)); @property (readonly) T _Nullable value __attribute__((swift_name("value"))); -@end; +@end __attribute__((swift_name("TestIncompatiblePropertyTypeWarningInterfaceWithGenericProperty"))) @protocol KtTestIncompatiblePropertyTypeWarningInterfaceWithGenericProperty @required @property (readonly) KtTestIncompatiblePropertyTypeWarningGeneric *p __attribute__((swift_name("p"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestIncompatiblePropertyTypeWarning.ClassOverridingInterfaceWithGenericProperty"))) @interface KtTestIncompatiblePropertyTypeWarningClassOverridingInterfaceWithGenericProperty : KtBase - (instancetype)initWithP:(KtTestIncompatiblePropertyTypeWarningGeneric *)p __attribute__((swift_name("init(p:)"))) __attribute__((objc_designated_initializer)); @property (readonly) KtTestIncompatiblePropertyTypeWarningGeneric *p __attribute__((swift_name("p"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestGH3992"))) @interface KtTestGH3992 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("TestGH3992.C"))) @interface KtTestGH3992C : KtBase - (instancetype)initWithA:(KtTestGH3992A *)a __attribute__((swift_name("init(a:)"))) __attribute__((objc_designated_initializer)); @property (readonly) KtTestGH3992A *a __attribute__((swift_name("a"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestGH3992.D"))) @interface KtTestGH3992D : KtTestGH3992C - (instancetype)initWithA:(KtTestGH3992B *)a __attribute__((swift_name("init(a:)"))) __attribute__((objc_designated_initializer)); @property (readonly) KtTestGH3992B *a __attribute__((swift_name("a"))); -@end; +@end __attribute__((swift_name("TestGH3992.A"))) @interface KtTestGH3992A : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestGH3992.B"))) @interface KtTestGH3992B : KtTestGH3992A - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end /** @@ -643,7 +643,7 @@ __attribute__((swift_name("KDocExport"))) /** @property foo KDoc for yxxyz? */ @property int32_t yxxyz __attribute__((swift_name("yxxyz"))); -@end; +@end __attribute__((swift_name("SomeClassWithProperty"))) @interface KtSomeClassWithProperty : KtBase @@ -681,7 +681,7 @@ __attribute__((swift_name("SomeClassWithProperty"))) * [Dispatchers.Main] supports immediate execution for Android, JavaFx and Swing platforms. */ @property (readonly) KtSomeClassWithProperty *heavyFormattedKDocFoo __attribute__((swift_name("heavyFormattedKDocFoo"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KdocExportKt"))) @@ -700,14 +700,14 @@ __attribute__((swift_name("KdocExportKt"))) Other uncaught Kotlin exceptions are fatal. */ + (NSString * _Nullable)whateverA:(NSString *)a error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("whatever(a:)"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideI1"))) @protocol KtKotlinPrivateOverrideI1 @required - (int32_t)i123AbstractMethod __attribute__((swift_name("i123AbstractMethod()"))); - (int32_t)i1OpenMethod __attribute__((swift_name("i1OpenMethod()"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideI2"))) @protocol KtKotlinPrivateOverrideI2 @@ -715,7 +715,7 @@ __attribute__((swift_name("KotlinPrivateOverrideI2"))) - (int32_t)i123AbstractMethod __attribute__((swift_name("i123AbstractMethod()"))); - (int32_t)i234AbstractMethod __attribute__((swift_name("i234AbstractMethod()"))); - (int32_t)i2AbstractMethod __attribute__((swift_name("i2AbstractMethod()"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideA1"))) @interface KtKotlinPrivateOverrideA1 : KtBase @@ -723,7 +723,7 @@ __attribute__((swift_name("KotlinPrivateOverrideA1"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)a1AbstractMethod __attribute__((swift_name("a1AbstractMethod()"))); - (int32_t)a1OpenMethod __attribute__((swift_name("a1OpenMethod()"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideI3"))) @protocol KtKotlinPrivateOverrideI3 @@ -731,34 +731,34 @@ __attribute__((swift_name("KotlinPrivateOverrideI3"))) - (int32_t)i123AbstractMethod __attribute__((swift_name("i123AbstractMethod()"))); - (int32_t)i234AbstractMethod __attribute__((swift_name("i234AbstractMethod()"))); - (int32_t)i3AbstractMethod __attribute__((swift_name("i3AbstractMethod()"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideI4"))) @protocol KtKotlinPrivateOverrideI4 @required - (int32_t)i234AbstractMethod __attribute__((swift_name("i234AbstractMethod()"))); - (int32_t)i4AbstractMethod __attribute__((swift_name("i4AbstractMethod()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KotlinPrivateOverrideKt"))) @interface KtKotlinPrivateOverrideKt : KtBase + (id)createP1 __attribute__((swift_name("createP1()"))); + (id)createP12 __attribute__((swift_name("createP12()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt35940Kt"))) @interface KtKt35940Kt : KtBase + (NSString *)testKt35940 __attribute__((swift_name("testKt35940()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641"))) @interface KtKT38641 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641.IntType"))) @@ -766,7 +766,7 @@ __attribute__((swift_name("KT38641.IntType"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (getter=description, setter=setDescription:) int32_t description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641.Val"))) @@ -774,7 +774,7 @@ __attribute__((swift_name("KT38641.Val"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly, getter=description) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641.Var"))) @@ -782,7 +782,7 @@ __attribute__((swift_name("KT38641.Var"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (getter=description, setter=setDescription:) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641.TwoProperties"))) @@ -791,20 +791,20 @@ __attribute__((swift_name("KT38641.TwoProperties"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly, getter=description) NSString *description_ __attribute__((swift_name("description_"))); @property (readonly) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((swift_name("KT38641.OverrideVal"))) @interface KtKT38641OverrideVal : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly, getter=description) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((swift_name("KT38641OverrideVar"))) @protocol KtKT38641OverrideVar @required @property (getter=description, setter=setDescription:) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt38641Kt"))) @@ -812,46 +812,46 @@ __attribute__((swift_name("Kt38641Kt"))) + (NSString *)getOverrideValDescriptionImpl:(KtKT38641OverrideVal *)impl __attribute__((swift_name("getOverrideValDescription(impl:)"))); + (NSString *)getOverrideVarDescriptionImpl:(id)impl __attribute__((swift_name("getOverrideVarDescription(impl:)"))); + (void)setOverrideVarDescriptionImpl:(id)impl newValue:(NSString *)newValue __attribute__((swift_name("setOverrideVarDescription(impl:newValue:)"))); -@end; +@end __attribute__((swift_name("JsonConfiguration"))) @interface KtJsonConfiguration : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable("This class is deprecated for removal during serialization 1.0 API stabilization.\nFor configuring Json instances, the corresponding builder function can be used instead, e.g. instead of'Json(JsonConfiguration.Stable.copy(isLenient = true))' 'Json { isLenient = true }' should be used.\nInstead of storing JsonConfiguration instances of the code, Json instances can be used directly:'Json(MyJsonConfiguration.copy(prettyPrint = true))' can be replaced with 'Json(from = MyApplicationJson) { prettyPrint = true }'"))); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("MoreTrickyChars"))) @interface KtMoreTrickyChars : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((deprecated("'\"\\@$(){}\r\n"))); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt39206Kt"))) @interface KtKt39206Kt : KtBase + (int32_t)myFunc __attribute__((swift_name("myFunc()"))) __attribute__((deprecated("Don't call this\nPlease"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Ckt41907"))) @interface KtCkt41907 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("Ikt41907"))) @protocol KtIkt41907 @required - (void)fooC:(KtCkt41907 *)c __attribute__((swift_name("foo(c:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt41907Kt"))) @interface KtKt41907Kt : KtBase + (void)escapeCC:(KtCkt41907 *)c __attribute__((swift_name("escapeC(c:)"))); + (void)testKt41907O:(id)o __attribute__((swift_name("testKt41907(o:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43599"))) @@ -859,11 +859,11 @@ __attribute__((swift_name("KT43599"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) NSString *memberProperty __attribute__((swift_name("memberProperty"))); -@end; +@end @interface KtKT43599 (Kt43599Kt) @property (readonly) NSString *extensionProperty __attribute__((swift_name("extensionProperty"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt43599Kt"))) @@ -871,7 +871,7 @@ __attribute__((swift_name("Kt43599Kt"))) + (void)setTopLevelLateinitPropertyValue:(NSString *)value __attribute__((swift_name("setTopLevelLateinitProperty(value:)"))); @property (class, readonly) NSString *topLevelProperty __attribute__((swift_name("topLevelProperty"))); @property (class, readonly) NSString *topLevelLateinitProperty __attribute__((swift_name("topLevelLateinitProperty"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780TestObject"))) @@ -884,7 +884,7 @@ __attribute__((swift_name("KT43780TestObject"))) @property (readonly) int32_t y __attribute__((swift_name("y"))); @property (readonly) NSString *shared __attribute__((swift_name("shared"))); @property (readonly) NSString *Shared __attribute__((swift_name("Shared"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780TestClassWithCompanion"))) @@ -892,7 +892,7 @@ __attribute__((swift_name("KT43780TestClassWithCompanion"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (class, readonly, getter=companion) KtKT43780TestClassWithCompanionCompanion *companion __attribute__((swift_name("companion"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780TestClassWithCompanion.Companion"))) @@ -902,7 +902,7 @@ __attribute__((swift_name("KT43780TestClassWithCompanion.Companion"))) + (instancetype)companion __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtKT43780TestClassWithCompanionCompanion *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t z __attribute__((swift_name("z"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Shared"))) @@ -912,7 +912,7 @@ __attribute__((swift_name("Shared"))) + (instancetype)shared __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared_) KtShared *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Companion"))) @@ -921,7 +921,7 @@ __attribute__((swift_name("Companion"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (class, readonly, getter=companion) KtCompanionCompanion *companion __attribute__((swift_name("companion"))); @property (readonly) int32_t t __attribute__((swift_name("t"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Companion.Companion"))) @@ -931,7 +931,7 @@ __attribute__((swift_name("Companion.Companion"))) + (instancetype)companion __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtCompanionCompanion *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780Enum"))) @@ -942,7 +942,7 @@ __attribute__((swift_name("KT43780Enum"))) @property (class, readonly) KtKT43780Enum *otherEntry __attribute__((swift_name("otherEntry"))); @property (class, readonly) KtKT43780Enum *companion __attribute__((swift_name("companion"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780Enum.Companion"))) @@ -952,7 +952,7 @@ __attribute__((swift_name("KT43780Enum.Companion"))) + (instancetype)companion __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtKT43780EnumCompanion *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ClassWithInternalCompanion"))) @@ -960,7 +960,7 @@ __attribute__((swift_name("ClassWithInternalCompanion"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t y __attribute__((swift_name("y"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ClassWithPrivateCompanion"))) @@ -968,25 +968,25 @@ __attribute__((swift_name("ClassWithPrivateCompanion"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t y __attribute__((swift_name("y"))); -@end; +@end __attribute__((swift_name("Host"))) @protocol KtHost @required @property (readonly) NSString *test __attribute__((swift_name("test"))); -@end; +@end __attribute__((swift_name("AbstractHost"))) @interface KtAbstractHost : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt46431Kt"))) @interface KtKt46431Kt : KtBase + (id)createAbstractHost __attribute__((swift_name("createAbstractHost()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT49937"))) @@ -994,7 +994,7 @@ __attribute__((swift_name("KT49937"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)description __attribute__((swift_name("description()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("LibraryKt"))) @@ -1002,7 +1002,7 @@ __attribute__((swift_name("LibraryKt"))) + (NSString *)readDataFromLibraryClassInput:(KtA *)input __attribute__((swift_name("readDataFromLibraryClass(input:)"))); + (NSString *)readDataFromLibraryInterfaceInput:(id)input __attribute__((swift_name("readDataFromLibraryInterface(input:)"))); + (NSString *)readDataFromLibraryEnumInput:(KtE *)input __attribute__((swift_name("readDataFromLibraryEnum(input:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ArraysConstructor"))) @@ -1010,7 +1010,7 @@ __attribute__((swift_name("ArraysConstructor"))) - (instancetype)initWithInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("init(int1:int2:)"))) __attribute__((objc_designated_initializer)); - (void)setInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("set(int1:int2:)"))); - (NSString *)log __attribute__((swift_name("log()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ArraysDefault"))) @@ -1018,7 +1018,7 @@ __attribute__((swift_name("ArraysDefault"))) - (instancetype)initWithInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("init(int1:int2:)"))) __attribute__((objc_designated_initializer)); - (void)setInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("set(int1:int2:)"))); - (NSString *)log __attribute__((swift_name("log()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ArraysInitBlock"))) @@ -1026,7 +1026,7 @@ __attribute__((swift_name("ArraysInitBlock"))) - (instancetype)initWithInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("init(int1:int2:)"))) __attribute__((objc_designated_initializer)); - (void)setInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("set(int1:int2:)"))); - (NSString *)log __attribute__((swift_name("log()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KotlinLivenessTracker"))) @@ -1037,14 +1037,14 @@ __attribute__((swift_name("KotlinLivenessTracker"))) - (BOOL)isEmpty __attribute__((swift_name("isEmpty()"))); - (BOOL)objectsAreDead __attribute__((swift_name("objectsAreDead()"))); @property (readonly) NSMutableArray *> *weakRefs __attribute__((swift_name("weakRefs"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KotlinObject"))) @interface KtKotlinObject : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("NoAutoreleaseSendHelper"))) @protocol KtNoAutoreleaseSendHelper @@ -1062,7 +1062,7 @@ __attribute__((swift_name("NoAutoreleaseSendHelper"))) Other uncaught Kotlin exceptions are fatal. */ - (void)sendCompletionWithCompletionHandler:(void (^)(id _Nullable_result, NSError * _Nullable))completionHandler __attribute__((swift_name("sendCompletion(completionHandler:)"))); -@end; +@end __attribute__((swift_name("NoAutoreleaseReceiveHelper"))) @protocol KtNoAutoreleaseReceiveHelper @@ -1073,7 +1073,7 @@ __attribute__((swift_name("NoAutoreleaseReceiveHelper"))) - (NSString *)receiveString __attribute__((swift_name("receiveString()"))); - (id)receiveNumber __attribute__((swift_name("receiveNumber()"))); - (KtKotlinObject *(^)(void))receiveBlock __attribute__((swift_name("receiveBlock()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseKotlinSendHelper"))) @@ -1093,7 +1093,7 @@ __attribute__((swift_name("NoAutoreleaseKotlinSendHelper"))) */ - (void)sendCompletionWithCompletionHandler:(void (^)(id _Nullable_result, NSError * _Nullable))completionHandler __attribute__((swift_name("sendCompletion(completionHandler:)"))); @property (readonly) KtKotlinLivenessTracker *kotlinLivenessTracker __attribute__((swift_name("kotlinLivenessTracker"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseKotlinReceiveHelper"))) @@ -1107,7 +1107,7 @@ __attribute__((swift_name("NoAutoreleaseKotlinReceiveHelper"))) - (KtKotlinObject *(^)(void))receiveBlock __attribute__((swift_name("receiveBlock()"))); @property id swiftObject __attribute__((swift_name("swiftObject"))); @property (readonly) KtKotlinLivenessTracker *kotlinLivenessTracker __attribute__((swift_name("kotlinLivenessTracker"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseSingleton"))) @@ -1117,7 +1117,7 @@ __attribute__((swift_name("NoAutoreleaseSingleton"))) + (instancetype)noAutoreleaseSingleton __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtNoAutoreleaseSingleton *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseEnum"))) @@ -1128,7 +1128,7 @@ __attribute__((swift_name("NoAutoreleaseEnum"))) @property (class, readonly) KtNoAutoreleaseEnum *entry __attribute__((swift_name("entry"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseKt"))) @@ -1152,37 +1152,37 @@ __attribute__((swift_name("NoAutoreleaseKt"))) + (void * _Nullable)objc_autoreleasePoolPush __attribute__((swift_name("objc_autoreleasePoolPush()"))); + (void)objc_autoreleasePoolPopHandle:(void * _Nullable)handle __attribute__((swift_name("objc_autoreleasePoolPop(handle:)"))); + (void)useIntArrayArray:(KtKotlinIntArray *)array __attribute__((swift_name("useIntArray(array:)"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods2"))) @protocol KtOverrideKotlinMethods2 @required - (int32_t)one __attribute__((swift_name("one()"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods3"))) @interface KtOverrideKotlinMethods3 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods4"))) @interface KtOverrideKotlinMethods4 : KtOverrideKotlinMethods3 - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)one __attribute__((swift_name("one()"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods5"))) @protocol KtOverrideKotlinMethods5 @required - (int32_t)one __attribute__((swift_name("one()"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods6"))) @protocol KtOverrideKotlinMethods6 @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("OverrideKotlinMethodsKt"))) @@ -1222,7 +1222,7 @@ __attribute__((swift_name("OverrideKotlinMethodsKt"))) @note This method converts all Kotlin exceptions to errors. */ + (BOOL)test6Obj:(id)obj error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("test6(obj:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("OverrideMethodsOfAnyKt"))) @@ -1232,11 +1232,11 @@ __attribute__((swift_name("OverrideMethodsOfAnyKt"))) @note This method converts all Kotlin exceptions to errors. */ + (BOOL)testObj:(id)obj other:(id)other swift:(BOOL)swift error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("test(obj:other:swift:)"))); -@end; +@end __attribute__((swift_name("Person"))) @interface KtPerson : KtBase -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Person.User"))) @@ -1248,13 +1248,13 @@ __attribute__((swift_name("Person.User"))) - (int32_t)component1 __attribute__((swift_name("component1()"))) __attribute__((deprecated("use corresponding property instead"))); - (KtPersonUser *)doCopyId:(int32_t)id __attribute__((swift_name("doCopy(id:)"))); @property (readonly) int32_t id __attribute__((swift_name("id"))); -@end; +@end __attribute__((swift_name("Person.Worker"))) @interface KtPersonWorker : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Person.WorkerEmployee"))) @@ -1268,7 +1268,7 @@ __attribute__((swift_name("Person.WorkerEmployee"))) - (int32_t)component1 __attribute__((swift_name("component1()"))) __attribute__((deprecated("use corresponding property instead"))); - (KtPersonWorkerEmployee *)doCopyId:(int32_t)id __attribute__((swift_name("doCopy(id:)"))); @property (readonly) int32_t id __attribute__((swift_name("id"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Person.WorkerContractor"))) @@ -1282,7 +1282,7 @@ __attribute__((swift_name("Person.WorkerContractor"))) - (int32_t)component1 __attribute__((swift_name("component1()"))) __attribute__((deprecated("use corresponding property instead"))); - (KtPersonWorkerContractor *)doCopyId:(int32_t)id __attribute__((swift_name("doCopy(id:)"))); @property (readonly) int32_t id __attribute__((swift_name("id"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ThrowableAsError"))) @@ -1292,7 +1292,7 @@ __attribute__((swift_name("ThrowableAsError"))) - (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithCause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithMessage:(NSString * _Nullable)message cause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((swift_name("ThrowsThrowableAsError"))) @protocol KtThrowsThrowableAsError @@ -1302,7 +1302,7 @@ __attribute__((swift_name("ThrowsThrowableAsError"))) @note This method converts all Kotlin exceptions to errors. */ - (BOOL)throwErrorAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("throwError()"))); -@end; +@end __attribute__((swift_name("ThrowsThrowableAsErrorSuspend"))) @protocol KtThrowsThrowableAsErrorSuspend @@ -1313,14 +1313,14 @@ __attribute__((swift_name("ThrowsThrowableAsErrorSuspend"))) Other uncaught Kotlin exceptions are fatal. */ - (void)throwErrorWithCompletionHandler:(void (^)(NSError * _Nullable))completionHandler __attribute__((swift_name("throwError(completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ThrowableAsErrorKt"))) @interface KtThrowableAsErrorKt : KtBase + (KtThrowableAsError * _Nullable)callAndCatchThrowableAsErrorThrowsThrowableAsError:(id)throwsThrowableAsError __attribute__((swift_name("callAndCatchThrowableAsError(throwsThrowableAsError:)"))); + (KtThrowableAsError * _Nullable)callAndCatchThrowableAsErrorSuspendThrowsThrowableAsErrorSuspend:(id)throwsThrowableAsErrorSuspend __attribute__((swift_name("callAndCatchThrowableAsErrorSuspend(throwsThrowableAsErrorSuspend:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ThrowsEmptyKt"))) @@ -1330,7 +1330,7 @@ __attribute__((swift_name("ThrowsEmptyKt"))) @warning All uncaught Kotlin exceptions are fatal. */ + (BOOL)throwsEmptyAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("throwsEmpty()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelManglingAKt"))) @@ -1339,14 +1339,14 @@ __attribute__((swift_name("TopLevelManglingAKt"))) + (int32_t)sameNumberValue:(int32_t)value __attribute__((swift_name("sameNumber(value:)"))); + (int64_t)sameNumberValue:(int64_t)value __attribute__((swift_name("sameNumber(value:)"))); @property (class, readonly) NSString *bar __attribute__((swift_name("bar"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelManglingBKt"))) @interface KtTopLevelManglingBKt : KtBase + (NSString *)foo __attribute__((swift_name("foo()"))); @property (class, readonly) NSString *bar __attribute__((swift_name("bar"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DelegateClass"))) @@ -1355,27 +1355,27 @@ __attribute__((swift_name("DelegateClass"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (KtKotlinArray *)getValueThisRef:(KtKotlinNothing * _Nullable)thisRef property:(id)property __attribute__((swift_name("getValue(thisRef:property:)"))); - (void)setValueThisRef:(KtKotlinNothing * _Nullable)thisRef property:(id)property value:(KtKotlinArray *)value __attribute__((swift_name("setValue(thisRef:property:value:)"))); -@end; +@end __attribute__((swift_name("I"))) @protocol KtI @required - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DefaultInterfaceExt"))) @interface KtDefaultInterfaceExt : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("OpenClassI"))) @interface KtOpenClassI : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("FinalClassExtOpen"))) @@ -1383,7 +1383,7 @@ __attribute__((swift_name("FinalClassExtOpen"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((swift_name("MultiExtClass"))) @interface KtMultiExtClass : KtOpenClassI @@ -1391,7 +1391,7 @@ __attribute__((swift_name("MultiExtClass"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (id)piFun __attribute__((swift_name("piFun()"))); - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((swift_name("ConstrClass"))) @interface KtConstrClass : KtOpenClassI @@ -1401,7 +1401,7 @@ __attribute__((swift_name("ConstrClass"))) @property (readonly) int32_t i __attribute__((swift_name("i"))); @property (readonly) NSString *s __attribute__((swift_name("s"))); @property (readonly) id a __attribute__((swift_name("a"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ExtConstrClass"))) @@ -1410,7 +1410,7 @@ __attribute__((swift_name("ExtConstrClass"))) - (instancetype)initWithI:(int32_t)i s:(NSString *)s a:(id)a __attribute__((swift_name("init(i:s:a:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (NSString *)iFun __attribute__((swift_name("iFun()"))); @property (readonly) int32_t i __attribute__((swift_name("i"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Enumeration"))) @@ -1423,7 +1423,7 @@ __attribute__((swift_name("Enumeration"))) @property (class, readonly) KtEnumeration *temperature __attribute__((swift_name("temperature"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) int32_t enumValue __attribute__((swift_name("enumValue"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TripleVals"))) @@ -1439,7 +1439,7 @@ __attribute__((swift_name("TripleVals"))) @property (readonly) T _Nullable first __attribute__((swift_name("first"))); @property (readonly) T _Nullable second __attribute__((swift_name("second"))); @property (readonly) T _Nullable third __attribute__((swift_name("third"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TripleVars"))) @@ -1455,14 +1455,14 @@ __attribute__((swift_name("TripleVars"))) @property T _Nullable first __attribute__((swift_name("first"))); @property T _Nullable second __attribute__((swift_name("second"))); @property T _Nullable third __attribute__((swift_name("third"))); -@end; +@end __attribute__((swift_name("WithCompanionAndObject"))) @interface KtWithCompanionAndObject : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (class, readonly, getter=companion) KtWithCompanionAndObjectCompanion *companion __attribute__((swift_name("companion"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithCompanionAndObject.Companion"))) @@ -1473,7 +1473,7 @@ __attribute__((swift_name("WithCompanionAndObject.Companion"))) @property (class, readonly, getter=shared) KtWithCompanionAndObjectCompanion *shared __attribute__((swift_name("shared"))); @property (readonly) NSString *str __attribute__((swift_name("str"))); @property id _Nullable named __attribute__((swift_name("named"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithCompanionAndObject.Named"))) @@ -1485,7 +1485,7 @@ __attribute__((swift_name("WithCompanionAndObject.Named"))) + (instancetype)named __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtWithCompanionAndObjectNamed *shared __attribute__((swift_name("shared"))); - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("MyException"))) @@ -1495,7 +1495,7 @@ __attribute__((swift_name("MyException"))) - (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithMessage:(NSString * _Nullable)message cause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithCause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("MyError"))) @@ -1505,7 +1505,7 @@ __attribute__((swift_name("MyError"))) - (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithMessage:(NSString * _Nullable)message cause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithCause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((swift_name("SwiftOverridableMethodsWithThrows"))) @protocol KtSwiftOverridableMethodsWithThrows @@ -1534,7 +1534,7 @@ __attribute__((swift_name("SwiftOverridableMethodsWithThrows"))) Other uncaught Kotlin exceptions are fatal. */ - (KtInt *(^ _Nullable)(void))blockAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("block()"))); -@end; +@end __attribute__((swift_name("MethodsWithThrows"))) @protocol KtMethodsWithThrows @@ -1587,7 +1587,7 @@ __attribute__((swift_name("MethodsWithThrows"))) Other uncaught Kotlin exceptions are fatal. */ - (double)doubleAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("double()"))) __attribute__((swift_error(nonnull_error))); -@end; +@end __attribute__((swift_name("MethodsWithThrowsUnitCaller"))) @protocol KtMethodsWithThrowsUnitCaller @@ -1598,7 +1598,7 @@ __attribute__((swift_name("MethodsWithThrowsUnitCaller"))) Other uncaught Kotlin exceptions are fatal. */ - (BOOL)callMethods:(id)methods error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("call(methods:)"))); -@end; +@end __attribute__((swift_name("Throwing"))) @interface KtThrowing : KtBase @@ -1680,7 +1680,7 @@ __attribute__((swift_name("Throwing"))) Other uncaught Kotlin exceptions are fatal. */ - (double)doubleAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("double()"))) __attribute__((swift_error(nonnull_error))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NotThrowing"))) @@ -1763,7 +1763,7 @@ __attribute__((swift_name("NotThrowing"))) Other uncaught Kotlin exceptions are fatal. */ - (double)doubleAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("double()"))) __attribute__((swift_error(nonnull_error))); -@end; +@end __attribute__((swift_name("ThrowsWithBridgeBase"))) @protocol KtThrowsWithBridgeBase @@ -1774,7 +1774,7 @@ __attribute__((swift_name("ThrowsWithBridgeBase"))) Other uncaught Kotlin exceptions are fatal. */ - (id _Nullable)plusOneX:(int32_t)x error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("plusOne(x:)"))); -@end; +@end __attribute__((swift_name("ThrowsWithBridge"))) @interface KtThrowsWithBridge : KtBase @@ -1786,21 +1786,21 @@ __attribute__((swift_name("ThrowsWithBridge"))) Other uncaught Kotlin exceptions are fatal. */ - (KtInt * _Nullable)plusOneX:(int32_t)x error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("plusOne(x:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Deeply"))) @interface KtDeeply : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Deeply.Nested"))) @interface KtDeeplyNested : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Deeply.NestedType"))) @@ -1808,26 +1808,26 @@ __attribute__((swift_name("Deeply.NestedType"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t thirtyTwo __attribute__((swift_name("thirtyTwo"))); -@end; +@end __attribute__((swift_name("DeeplyNestedIType"))) @protocol KtDeeplyNestedIType @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithGenericDeeply"))) @interface KtWithGenericDeeply : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithGenericDeeply.Nested"))) @interface KtWithGenericDeeplyNested : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithGenericDeeplyNestedType"))) @@ -1835,14 +1835,14 @@ __attribute__((swift_name("WithGenericDeeplyNestedType"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t thirtyThree __attribute__((swift_name("thirtyThree"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TypeOuter"))) @interface KtTypeOuter : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TypeOuter.Type_"))) @@ -1850,7 +1850,7 @@ __attribute__((swift_name("TypeOuter.Type_"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t thirtyFour __attribute__((swift_name("thirtyFour"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("CKeywords"))) @@ -1866,55 +1866,55 @@ __attribute__((swift_name("CKeywords"))) @property (readonly, getter=float) float float_ __attribute__((swift_name("float_"))); @property (readonly, getter=enum) int32_t enum_ __attribute__((swift_name("enum_"))); @property (getter=goto, setter=setGoto:) BOOL goto_ __attribute__((swift_name("goto_"))); -@end; +@end __attribute__((swift_name("Base1"))) @protocol KtBase1 @required - (KtInt * _Nullable)sameValue:(KtInt * _Nullable)value __attribute__((swift_name("same(value:)"))); -@end; +@end __attribute__((swift_name("ExtendedBase1"))) @protocol KtExtendedBase1 @required -@end; +@end __attribute__((swift_name("Base2"))) @protocol KtBase2 @required - (KtInt * _Nullable)sameValue:(KtInt * _Nullable)value __attribute__((swift_name("same(value:)"))); -@end; +@end __attribute__((swift_name("Base23"))) @interface KtBase23 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (KtInt *)sameValue:(KtInt * _Nullable)value __attribute__((swift_name("same(value:)"))); -@end; +@end __attribute__((swift_name("Transform"))) @protocol KtTransform @required - (id _Nullable)mapValue:(id _Nullable)value __attribute__((swift_name("map(value:)"))); -@end; +@end __attribute__((swift_name("TransformWithDefault"))) @protocol KtTransformWithDefault @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TransformInheritingDefault"))) @interface KtTransformInheritingDefault : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("TransformIntString"))) @protocol KtTransformIntString @required - (NSString *)mapIntValue:(int32_t)intValue __attribute__((swift_name("map(intValue:)"))); -@end; +@end __attribute__((swift_name("TransformIntToString"))) @interface KtTransformIntToString : KtBase @@ -1922,7 +1922,7 @@ __attribute__((swift_name("TransformIntToString"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)mapValue:(KtInt *)intValue __attribute__((swift_name("map(value:)"))); - (NSString *)mapIntValue:(int32_t)intValue __attribute__((swift_name("map(intValue:)"))); -@end; +@end __attribute__((swift_name("TransformIntToDecimalString"))) @interface KtTransformIntToDecimalString : KtTransformIntToString @@ -1930,28 +1930,28 @@ __attribute__((swift_name("TransformIntToDecimalString"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)mapValue:(KtInt *)intValue __attribute__((swift_name("map(value:)"))); - (NSString *)mapIntValue:(int32_t)intValue __attribute__((swift_name("map(intValue:)"))); -@end; +@end __attribute__((swift_name("TransformIntToLong"))) @interface KtTransformIntToLong : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (KtLong *)mapValue:(KtInt *)value __attribute__((swift_name("map(value:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2931"))) @interface KtGH2931 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2931.Data"))) @interface KtGH2931Data : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2931.Holder"))) @@ -1959,7 +1959,7 @@ __attribute__((swift_name("GH2931.Holder"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) KtGH2931Data *data __attribute__((swift_name("data"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2945"))) @@ -1967,7 +1967,7 @@ __attribute__((swift_name("GH2945"))) - (instancetype)initWithErrno:(int32_t)errno __attribute__((swift_name("init(errno:)"))) __attribute__((objc_designated_initializer)); - (int32_t)testErrnoInSelectorP:(int32_t)p errno:(int32_t)errno __attribute__((swift_name("testErrnoInSelector(p:errno:)"))); @property int32_t errno __attribute__((swift_name("errno"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2830"))) @@ -1975,12 +1975,12 @@ __attribute__((swift_name("GH2830"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (id)getI __attribute__((swift_name("getI()"))); -@end; +@end __attribute__((swift_name("GH2830I"))) @protocol KtGH2830I @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2959"))) @@ -1988,20 +1988,20 @@ __attribute__((swift_name("GH2959"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSArray> *)getIId:(int32_t)id __attribute__((swift_name("getI(id:)"))); -@end; +@end __attribute__((swift_name("GH2959I"))) @protocol KtGH2959I @required @property (readonly) int32_t id __attribute__((swift_name("id"))); -@end; +@end __attribute__((swift_name("IntBlocks"))) @protocol KtIntBlocks @required - (id _Nullable)getPlusOneBlock __attribute__((swift_name("getPlusOneBlock()"))); - (int32_t)callBlockArgument:(int32_t)argument block:(id _Nullable)block __attribute__((swift_name("callBlock(argument:block:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("IntBlocksImpl"))) @@ -2012,14 +2012,14 @@ __attribute__((swift_name("IntBlocksImpl"))) @property (class, readonly, getter=shared) KtIntBlocksImpl *shared __attribute__((swift_name("shared"))); - (KtInt *(^)(KtInt *))getPlusOneBlock __attribute__((swift_name("getPlusOneBlock()"))); - (int32_t)callBlockArgument:(int32_t)argument block:(KtInt *(^)(KtInt *))block __attribute__((swift_name("callBlock(argument:block:)"))); -@end; +@end __attribute__((swift_name("UnitBlockCoercion"))) @protocol KtUnitBlockCoercion @required - (id)coerceBlock:(void (^)(void))block __attribute__((swift_name("coerce(block:)"))); - (void (^)(void))uncoerceBlock:(id)block __attribute__((swift_name("uncoerce(block:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("UnitBlockCoercionImpl"))) @@ -2030,11 +2030,11 @@ __attribute__((swift_name("UnitBlockCoercionImpl"))) @property (class, readonly, getter=shared) KtUnitBlockCoercionImpl *shared __attribute__((swift_name("shared"))); - (KtKotlinUnit *(^)(void))coerceBlock:(void (^)(void))block __attribute__((swift_name("coerce(block:)"))); - (void (^)(void))uncoerceBlock:(KtKotlinUnit *(^)(void))block __attribute__((swift_name("uncoerce(block:)"))); -@end; +@end __attribute__((swift_name("MyAbstractList"))) @interface KtMyAbstractList : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestKClass"))) @@ -2045,54 +2045,54 @@ __attribute__((swift_name("TestKClass"))) - (id _Nullable)getKotlinClassProtocol:(Protocol *)protocol __attribute__((swift_name("getKotlinClass(protocol:)"))); - (BOOL)isTestKClassKClass:(id)kClass __attribute__((swift_name("isTestKClass(kClass:)"))); - (BOOL)isIKClass:(id)kClass __attribute__((swift_name("isI(kClass:)"))); -@end; +@end __attribute__((swift_name("TestKClassI"))) @protocol KtTestKClassI @required -@end; +@end __attribute__((swift_name("ForwardI2"))) @protocol KtForwardI2 @required -@end; +@end __attribute__((swift_name("ForwardI1"))) @protocol KtForwardI1 @required - (id)getForwardI2 __attribute__((swift_name("getForwardI2()"))); -@end; +@end __attribute__((swift_name("ForwardC2"))) @interface KtForwardC2 : KtForwardC1 - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("ForwardC1"))) @interface KtForwardC1 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (KtForwardC2 *)getForwardC2 __attribute__((swift_name("getForwardC2()"))); -@end; +@end __attribute__((swift_name("TestSR10177Workaround"))) @protocol KtTestSR10177Workaround @required -@end; +@end __attribute__((swift_name("TestClashes1"))) @protocol KtTestClashes1 @required @property (readonly) int32_t clashingProperty __attribute__((swift_name("clashingProperty"))); -@end; +@end __attribute__((swift_name("TestClashes2"))) @protocol KtTestClashes2 @required @property (readonly) id clashingProperty __attribute__((swift_name("clashingProperty"))); @property (readonly) id clashingProperty_ __attribute__((swift_name("clashingProperty_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestClashesImpl"))) @@ -2101,7 +2101,7 @@ __attribute__((swift_name("TestClashesImpl"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t clashingProperty __attribute__((swift_name("clashingProperty"))); @property (readonly) KtInt *clashingProperty_ __attribute__((swift_name("clashingProperty_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestInvalidIdentifiers"))) @@ -2112,7 +2112,7 @@ __attribute__((swift_name("TestInvalidIdentifiers"))) - (int32_t)aSdSdS1:(int32_t)S1 _2:(int32_t)_2 _3:(int32_t)_3 __attribute__((swift_name("aSdSd(S1:_2:_3:)"))); @property (readonly) unichar __ __attribute__((swift_name("__"))); @property (readonly) unichar __ __attribute__((swift_name("__"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestInvalidIdentifiers.E"))) @@ -2126,7 +2126,7 @@ __attribute__((swift_name("TestInvalidIdentifiers.E"))) @property (class, readonly) KtTestInvalidIdentifiersE *__ __attribute__((swift_name("__"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) int32_t value __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestInvalidIdentifiers.CompanionS"))) @@ -2136,7 +2136,7 @@ __attribute__((swift_name("TestInvalidIdentifiers.CompanionS"))) + (instancetype)companionS __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtTestInvalidIdentifiersCompanionS *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t _42 __attribute__((swift_name("_42"))); -@end; +@end __attribute__((swift_name("TestDeprecation"))) @interface KtTestDeprecation : KtBase @@ -2180,67 +2180,67 @@ __attribute__((swift_name("TestDeprecation"))) @property id _Nullable normalVar __attribute__((swift_name("normalVar"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))); -@end; +@end __attribute__((swift_name("TestDeprecation.OpenHidden"))) @interface KtTestDeprecationOpenHidden : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingHidden"))) @interface KtTestDeprecationExtendingHidden : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingHiddenNested"))) @interface KtTestDeprecationExtendingHiddenNested : NSObject -@end; +@end __attribute__((swift_name("TestDeprecationHiddenInterface"))) @protocol KtTestDeprecationHiddenInterface @required -@end; +@end __attribute__((swift_name("TestDeprecation.ImplementingHidden"))) @interface KtTestDeprecationImplementingHidden : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)effectivelyHidden __attribute__((swift_name("effectivelyHidden()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.Hidden"))) @interface KtTestDeprecationHidden : NSObject -@end; +@end __attribute__((swift_name("TestDeprecation.HiddenNested"))) @interface KtTestDeprecationHiddenNested : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenNestedNested"))) @interface KtTestDeprecationHiddenNestedNested : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenNestedInner"))) @interface KtTestDeprecationHiddenNestedInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenInner"))) @interface KtTestDeprecationHiddenInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenInnerInner"))) @interface KtTestDeprecationHiddenInnerInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingNestedInHidden"))) @interface KtTestDeprecationExtendingNestedInHidden : NSObject -@end; +@end __attribute__((swift_name("TestDeprecation.OpenError"))) @interface KtTestDeprecationOpenError : KtTestDeprecation @@ -2249,26 +2249,26 @@ __attribute__((swift_name("TestDeprecation.OpenError"))) - (instancetype)initWithError:(int16_t)error __attribute__((swift_name("init(error:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithWarning:(int32_t)warning __attribute__((swift_name("init(warning:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithNormal:(int64_t)normal __attribute__((swift_name("init(normal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingError"))) @interface KtTestDeprecationExtendingError : KtTestDeprecationOpenError - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("TestDeprecationErrorInterface"))) @protocol KtTestDeprecationErrorInterface @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ImplementingError"))) @interface KtTestDeprecationImplementingError : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.Error"))) @@ -2278,7 +2278,7 @@ __attribute__((swift_name("TestDeprecation.Error"))) - (instancetype)initWithError:(int16_t)error __attribute__((swift_name("init(error:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithWarning:(int32_t)warning __attribute__((swift_name("init(warning:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithNormal:(int64_t)normal __attribute__((swift_name("init(normal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((swift_name("TestDeprecation.OpenWarning"))) @interface KtTestDeprecationOpenWarning : KtTestDeprecation @@ -2287,26 +2287,26 @@ __attribute__((swift_name("TestDeprecation.OpenWarning"))) - (instancetype)initWithError:(int16_t)error __attribute__((swift_name("init(error:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithWarning:(int32_t)warning __attribute__((swift_name("init(warning:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithNormal:(int64_t)normal __attribute__((swift_name("init(normal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingWarning"))) @interface KtTestDeprecationExtendingWarning : KtTestDeprecationOpenWarning - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("TestDeprecationWarningInterface"))) @protocol KtTestDeprecationWarningInterface @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ImplementingWarning"))) @interface KtTestDeprecationImplementingWarning : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.Warning"))) @@ -2316,7 +2316,7 @@ __attribute__((swift_name("TestDeprecation.Warning"))) - (instancetype)initWithError:(int16_t)error __attribute__((swift_name("init(error:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithWarning:(int32_t)warning __attribute__((swift_name("init(warning:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithNormal:(int64_t)normal __attribute__((swift_name("init(normal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenOverride"))) @@ -2335,7 +2335,7 @@ __attribute__((swift_name("TestDeprecation.HiddenOverride"))) @property id _Nullable openWarningVar __attribute__((swift_name("openWarningVar"))) __attribute__((unavailable("hidden"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))) __attribute__((unavailable("hidden"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))) __attribute__((unavailable("hidden"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ErrorOverride"))) @@ -2358,7 +2358,7 @@ __attribute__((swift_name("TestDeprecation.ErrorOverride"))) @property id _Nullable openWarningVar __attribute__((swift_name("openWarningVar"))) __attribute__((unavailable("error"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))) __attribute__((unavailable("error"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))) __attribute__((unavailable("error"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.WarningOverride"))) @@ -2381,7 +2381,7 @@ __attribute__((swift_name("TestDeprecation.WarningOverride"))) @property id _Nullable openWarningVar __attribute__((swift_name("openWarningVar"))) __attribute__((deprecated("warning"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))) __attribute__((deprecated("warning"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))) __attribute__((deprecated("warning"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.NormalOverride"))) @@ -2401,37 +2401,37 @@ __attribute__((swift_name("TestDeprecation.NormalOverride"))) @property id _Nullable openWarningVar __attribute__((swift_name("openWarningVar"))) __attribute__((deprecated("Overrides deprecated member in 'conversions.TestDeprecation'. warning"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden"))) @interface KtTopLevelHidden : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.Nested"))) @interface KtTopLevelHiddenNested : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.NestedNested"))) @interface KtTopLevelHiddenNestedNested : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.NestedInner"))) @interface KtTopLevelHiddenNestedInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.Inner"))) @interface KtTopLevelHiddenInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.InnerInner"))) @interface KtTopLevelHiddenInnerInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestWeakRefs"))) @@ -2440,7 +2440,7 @@ __attribute__((swift_name("TestWeakRefs"))) - (id)getObj __attribute__((swift_name("getObj()"))); - (void)clearObj __attribute__((swift_name("clearObj()"))); - (NSArray *)createCycle __attribute__((swift_name("createCycle()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("SharedRefs"))) @@ -2454,7 +2454,7 @@ __attribute__((swift_name("SharedRefs"))) - (void (^)(void))createFrozenLambda __attribute__((swift_name("createFrozenLambda()"))); - (NSMutableArray *)createFrozenCollection __attribute__((swift_name("createFrozenCollection()"))); - (BOOL)hasAliveObjects __attribute__((swift_name("hasAliveObjects()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("SharedRefs.MutableData"))) @@ -2463,44 +2463,44 @@ __attribute__((swift_name("SharedRefs.MutableData"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (void)update __attribute__((swift_name("update()"))); @property int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((swift_name("TestRememberNewObject"))) @protocol KtTestRememberNewObject @required - (id)getObject __attribute__((swift_name("getObject()"))); - (void)waitForCleanup __attribute__((swift_name("waitForCleanup()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT49497Model"))) @interface KtKT49497Model : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("ClassForTypeCheck"))) @interface KtClassForTypeCheck : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("InterfaceForTypeCheck"))) @protocol KtInterfaceForTypeCheck @required -@end; +@end __attribute__((swift_name("IAbstractInterface"))) @protocol KtIAbstractInterface @required - (int32_t)foo __attribute__((swift_name("foo()"))); -@end; +@end __attribute__((swift_name("IAbstractInterface2"))) @protocol KtIAbstractInterface2 @required - (int32_t)foo __attribute__((swift_name("foo()"))); -@end; +@end __attribute__((swift_name("AbstractInterfaceBase"))) @interface KtAbstractInterfaceBase : KtBase @@ -2508,26 +2508,26 @@ __attribute__((swift_name("AbstractInterfaceBase"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)foo __attribute__((swift_name("foo()"))); - (int32_t)bar __attribute__((swift_name("bar()"))); -@end; +@end __attribute__((swift_name("AbstractInterfaceBase2"))) @interface KtAbstractInterfaceBase2 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("AbstractInterfaceBase3"))) @interface KtAbstractInterfaceBase3 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)foo __attribute__((swift_name("foo()"))); -@end; +@end __attribute__((swift_name("GH3525Base"))) @interface KtGH3525Base : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH3525"))) @@ -2538,7 +2538,7 @@ __attribute__((swift_name("GH3525"))) + (instancetype)new __attribute__((unavailable)); + (instancetype)gH3525 __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtGH3525 *shared __attribute__((swift_name("shared"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestStringConversion"))) @@ -2546,7 +2546,7 @@ __attribute__((swift_name("TestStringConversion"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property id str __attribute__((swift_name("str"))); -@end; +@end __attribute__((swift_name("GH3825"))) @protocol KtGH3825 @@ -2569,7 +2569,7 @@ __attribute__((swift_name("GH3825"))) Other uncaught Kotlin exceptions are fatal. */ - (BOOL)call2Callback:(void (^)(void))callback doThrow:(BOOL)doThrow error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("call2(callback:doThrow:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH3825KotlinImpl"))) @@ -2594,22 +2594,22 @@ __attribute__((swift_name("GH3825KotlinImpl"))) Other uncaught Kotlin exceptions are fatal. */ - (BOOL)call2Callback:(void (^)(void))callback doThrow:(BOOL)doThrow error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("call2(callback:doThrow:)"))); -@end; +@end __attribute__((swift_name("Foo_FakeOverrideInInterface"))) @protocol KtFoo_FakeOverrideInInterface @required - (void)fooT:(id _Nullable)t __attribute__((swift_name("foo(t:)"))); -@end; +@end __attribute__((swift_name("Bar_FakeOverrideInInterface"))) @protocol KtBar_FakeOverrideInInterface @required -@end; +@end @interface KtEnumeration (ValuesKt) - (KtEnumeration *)getAnswer __attribute__((swift_name("getAnswer()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ValuesKt"))) @@ -2792,38 +2792,38 @@ __attribute__((swift_name("ValuesKt"))) @property (class) int32_t gh3525BaseInitCount __attribute__((swift_name("gh3525BaseInitCount"))); @property (class) int32_t gh3525InitCount __attribute__((swift_name("gh3525InitCount"))); @property (class, readonly) BOOL isExperimentalMM __attribute__((swift_name("isExperimentalMM"))); -@end; +@end __attribute__((swift_name("InvariantSuper"))) @interface KtInvariantSuper : KtBase -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Invariant"))) @interface KtInvariant : KtInvariantSuper - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("OutVariantSuper"))) @interface KtOutVariantSuper<__covariant T> : KtBase -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("OutVariant"))) @interface KtOutVariant<__covariant T> : KtOutVariantSuper - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("InVariantSuper"))) @interface KtInVariantSuper<__contravariant T> : KtBase -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("InVariant"))) @interface KtInVariant<__contravariant T> : KtInVariantSuper - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end diff --git a/kotlin-native/backend.native/tests/objcexport/expectedLazyLegacySuspendUnit.h b/kotlin-native/backend.native/tests/objcexport/expectedLazyLegacySuspendUnit.h index 63763bd82f0..1bdac80bb3b 100644 --- a/kotlin-native/backend.native/tests/objcexport/expectedLazyLegacySuspendUnit.h +++ b/kotlin-native/backend.native/tests/objcexport/expectedLazyLegacySuspendUnit.h @@ -3,22 +3,22 @@ __attribute__((swift_name("KotlinBase"))) - (instancetype)init __attribute__((unavailable)); + (instancetype)new __attribute__((unavailable)); + (void)initialize __attribute__((objc_requires_super)); -@end; +@end @interface KtBase (KtBaseCopying) -@end; +@end __attribute__((swift_name("KotlinMutableSet"))) @interface KtMutableSet : NSMutableSet -@end; +@end __attribute__((swift_name("KotlinMutableDictionary"))) @interface KtMutableDictionary : NSMutableDictionary -@end; +@end @interface NSError (NSErrorKtKotlinException) @property (readonly) id _Nullable kotlinException; -@end; +@end __attribute__((swift_name("KotlinNumber"))) @interface KtNumber : NSNumber @@ -52,73 +52,73 @@ __attribute__((swift_name("KotlinNumber"))) + (instancetype)numberWithBool:(BOOL)value __attribute__((unavailable)); + (instancetype)numberWithInteger:(NSInteger)value __attribute__((unavailable)); + (instancetype)numberWithUnsignedInteger:(NSUInteger)value __attribute__((unavailable)); -@end; +@end __attribute__((swift_name("KotlinByte"))) @interface KtByte : KtNumber - (instancetype)initWithChar:(char)value; + (instancetype)numberWithChar:(char)value; -@end; +@end __attribute__((swift_name("KotlinUByte"))) @interface KtUByte : KtNumber - (instancetype)initWithUnsignedChar:(unsigned char)value; + (instancetype)numberWithUnsignedChar:(unsigned char)value; -@end; +@end __attribute__((swift_name("KotlinShort"))) @interface KtShort : KtNumber - (instancetype)initWithShort:(short)value; + (instancetype)numberWithShort:(short)value; -@end; +@end __attribute__((swift_name("KotlinUShort"))) @interface KtUShort : KtNumber - (instancetype)initWithUnsignedShort:(unsigned short)value; + (instancetype)numberWithUnsignedShort:(unsigned short)value; -@end; +@end __attribute__((swift_name("KotlinInt"))) @interface KtInt : KtNumber - (instancetype)initWithInt:(int)value; + (instancetype)numberWithInt:(int)value; -@end; +@end __attribute__((swift_name("KotlinUInt"))) @interface KtUInt : KtNumber - (instancetype)initWithUnsignedInt:(unsigned int)value; + (instancetype)numberWithUnsignedInt:(unsigned int)value; -@end; +@end __attribute__((swift_name("KotlinLong"))) @interface KtLong : KtNumber - (instancetype)initWithLongLong:(long long)value; + (instancetype)numberWithLongLong:(long long)value; -@end; +@end __attribute__((swift_name("KotlinULong"))) @interface KtULong : KtNumber - (instancetype)initWithUnsignedLongLong:(unsigned long long)value; + (instancetype)numberWithUnsignedLongLong:(unsigned long long)value; -@end; +@end __attribute__((swift_name("KotlinFloat"))) @interface KtFloat : KtNumber - (instancetype)initWithFloat:(float)value; + (instancetype)numberWithFloat:(float)value; -@end; +@end __attribute__((swift_name("KotlinDouble"))) @interface KtDouble : KtNumber - (instancetype)initWithDouble:(double)value; + (instancetype)numberWithDouble:(double)value; -@end; +@end __attribute__((swift_name("KotlinBoolean"))) @interface KtBoolean : KtNumber - (instancetype)initWithBool:(BOOL)value; + (instancetype)numberWithBool:(BOOL)value; -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("CoroutineException"))) @@ -128,7 +128,7 @@ __attribute__((swift_name("CoroutineException"))) - (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithCause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithMessage:(NSString * _Nullable)message cause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ContinuationHolder"))) @@ -137,7 +137,7 @@ __attribute__((swift_name("ContinuationHolder"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (void)resumeValue:(T _Nullable)value __attribute__((swift_name("resume(value:)"))); - (void)resumeWithExceptionException:(KtKotlinThrowable *)exception __attribute__((swift_name("resumeWithException(exception:)"))); -@end; +@end __attribute__((swift_name("SuspendFun"))) @protocol KtSuspendFun @@ -148,7 +148,7 @@ __attribute__((swift_name("SuspendFun"))) Other uncaught Kotlin exceptions are fatal. */ - (void)suspendFunDoYield:(BOOL)doYield doThrow:(BOOL)doThrow completionHandler:(void (^)(KtInt * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("suspendFun(doYield:doThrow:completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ResultHolder"))) @@ -158,7 +158,7 @@ __attribute__((swift_name("ResultHolder"))) @property int32_t completed __attribute__((swift_name("completed"))); @property T _Nullable result __attribute__((swift_name("result"))); @property KtKotlinThrowable * _Nullable exception __attribute__((swift_name("exception"))); -@end; +@end __attribute__((swift_name("SuspendBridge"))) @protocol KtSuspendBridge @@ -213,7 +213,7 @@ __attribute__((swift_name("SuspendBridge"))) @note This method converts all Kotlin exceptions to errors. */ - (void)nothingAsUnitValue:(id _Nullable)value completionHandler:(void (^)(KtKotlinUnit * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("nothingAsUnit(value:completionHandler:)"))); -@end; +@end __attribute__((swift_name("AbstractSuspendBridge"))) @interface KtAbstractSuspendBridge : KtBase @@ -258,13 +258,13 @@ __attribute__((swift_name("AbstractSuspendBridge"))) @note This method converts all Kotlin exceptions to errors. */ - (void)nothingAsUnitValue:(KtInt *)value completionHandler:(void (^)(KtKotlinNothing * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("nothingAsUnit(value:completionHandler:)"))); -@end; +@end __attribute__((swift_name("ThrowCancellationException"))) @interface KtThrowCancellationException : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ThrowCancellationExceptionImpl"))) @@ -277,7 +277,7 @@ __attribute__((swift_name("ThrowCancellationExceptionImpl"))) Other uncaught Kotlin exceptions are fatal. */ - (void)throwCancellationExceptionWithCompletionHandler:(void (^)(KtKotlinUnit * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("throwCancellationException(completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("suspendFunctionChild0"))) @@ -290,7 +290,7 @@ __attribute__((swift_name("suspendFunctionChild0"))) Other uncaught Kotlin exceptions are fatal. */ - (void)invokeWithCompletionHandler:(void (^)(NSString * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("invoke(completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("suspendFunctionChild1"))) @@ -303,7 +303,7 @@ __attribute__((swift_name("suspendFunctionChild1"))) Other uncaught Kotlin exceptions are fatal. */ - (void)invokeP1:(NSString *)s completionHandler:(void (^)(NSString * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("invoke(p1:completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("CoroutinesKt"))) @@ -383,7 +383,7 @@ __attribute__((swift_name("CoroutinesKt"))) + (id)getKSuspendCallableReference0 __attribute__((swift_name("getKSuspendCallableReference0()"))); + (id)getKSuspendCallableReference1 __attribute__((swift_name("getKSuspendCallableReference1()"))); + (void)gc __attribute__((swift_name("gc()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DataClassWithComponentMethods"))) @@ -397,7 +397,7 @@ __attribute__((swift_name("DataClassWithComponentMethods"))) - (KtDataClassWithComponentMethods *)doCopyX:(int32_t)x y:(int32_t)y __attribute__((swift_name("doCopy(x:y:)"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); @property (readonly) int32_t y __attribute__((swift_name("y"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("RegularClassWithComponentMethods"))) @@ -406,27 +406,27 @@ __attribute__((swift_name("RegularClassWithComponentMethods"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)component1 __attribute__((swift_name("component1()"))); - (int32_t)component3 __attribute__((swift_name("component3()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DataClassComponentMethodsKt"))) @interface KtDataClassComponentMethodsKt : KtBase + (int32_t)component1 __attribute__((swift_name("component1()"))); + (int32_t)component4 __attribute__((swift_name("component4()"))); -@end; +@end __attribute__((swift_name("DeallocRetainBase"))) @interface KtDeallocRetainBase : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DeallocRetainKt"))) @interface KtDeallocRetainKt : KtBase + (void)garbageCollect __attribute__((swift_name("garbageCollect()"))); + (KtKotlinWeakReference *)createWeakReferenceValue:(id)value __attribute__((swift_name("createWeakReference(value:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("EnumLeftRightUpDown"))) @@ -439,7 +439,7 @@ __attribute__((swift_name("EnumLeftRightUpDown"))) @property (class, readonly) KtEnumLeftRightUpDown *up __attribute__((swift_name("up"))); @property (class, readonly) KtEnumLeftRightUpDown *down __attribute__((swift_name("down"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("EnumOneTwoThreeValues"))) @@ -452,7 +452,7 @@ __attribute__((swift_name("EnumOneTwoThreeValues"))) @property (class, readonly) KtEnumOneTwoThreeValues *three __attribute__((swift_name("three"))); @property (class, readonly) KtEnumOneTwoThreeValues *values __attribute__((swift_name("values"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("EnumValuesValues_"))) @@ -463,7 +463,7 @@ __attribute__((swift_name("EnumValuesValues_"))) @property (class, readonly) KtEnumValuesValues_ *values __attribute__((swift_name("values"))); @property (class, readonly) KtEnumValuesValues_ *values __attribute__((swift_name("values"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("EmptyEnum"))) @@ -472,27 +472,27 @@ __attribute__((swift_name("EmptyEnum"))) + (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); - (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((swift_name("FunInterface"))) @protocol KtFunInterface @required - (int32_t)run __attribute__((swift_name("run()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("FunInterfacesKt"))) @interface KtFunInterfacesKt : KtBase + (id)getObject __attribute__((swift_name("getObject()"))); + (id)getLambda __attribute__((swift_name("getLambda()"))); -@end; +@end __attribute__((swift_name("FHolder"))) @interface KtFHolder : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) id _Nullable value __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("F2Holder"))) @@ -501,7 +501,7 @@ __attribute__((swift_name("F2Holder"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); + (instancetype)new __attribute__((unavailable)); @property (readonly) id _Nullable (^value)(id _Nullable, id _Nullable) __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("F32Holder"))) @@ -510,7 +510,7 @@ __attribute__((swift_name("F32Holder"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); + (instancetype)new __attribute__((unavailable)); @property (readonly) id _Nullable (^value)(id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable) __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("F33Holder"))) @@ -519,7 +519,7 @@ __attribute__((swift_name("F33Holder"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); + (instancetype)new __attribute__((unavailable)); @property (readonly) id value __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("FunctionalTypesKt"))) @@ -540,80 +540,80 @@ __attribute__((swift_name("FunctionalTypesKt"))) + (id _Nullable (^)(id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable))getStaticTypeRef33 __attribute__((swift_name("getStaticTypeRef33()"))); + (KtF33Holder *)getDynTypeLambda33 __attribute__((swift_name("getDynTypeLambda33()"))); + (id _Nullable (^)(id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable))getStaticTypeLambda33 __attribute__((swift_name("getStaticTypeLambda33()"))); -@end; +@end __attribute__((swift_name("GH4002ArgumentBase"))) @interface KtGH4002ArgumentBase : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH4002Argument"))) @interface KtGH4002Argument : KtGH4002ArgumentBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestIncompatiblePropertyTypeWarning"))) @interface KtTestIncompatiblePropertyTypeWarning : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestIncompatiblePropertyTypeWarningGeneric"))) @interface KtTestIncompatiblePropertyTypeWarningGeneric : KtBase - (instancetype)initWithValue:(T _Nullable)value __attribute__((swift_name("init(value:)"))) __attribute__((objc_designated_initializer)); @property (readonly) T _Nullable value __attribute__((swift_name("value"))); -@end; +@end __attribute__((swift_name("TestIncompatiblePropertyTypeWarningInterfaceWithGenericProperty"))) @protocol KtTestIncompatiblePropertyTypeWarningInterfaceWithGenericProperty @required @property (readonly) KtTestIncompatiblePropertyTypeWarningGeneric *p __attribute__((swift_name("p"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestIncompatiblePropertyTypeWarning.ClassOverridingInterfaceWithGenericProperty"))) @interface KtTestIncompatiblePropertyTypeWarningClassOverridingInterfaceWithGenericProperty : KtBase - (instancetype)initWithP:(KtTestIncompatiblePropertyTypeWarningGeneric *)p __attribute__((swift_name("init(p:)"))) __attribute__((objc_designated_initializer)); @property (readonly) KtTestIncompatiblePropertyTypeWarningGeneric *p __attribute__((swift_name("p"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestGH3992"))) @interface KtTestGH3992 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("TestGH3992.C"))) @interface KtTestGH3992C : KtBase - (instancetype)initWithA:(KtTestGH3992A *)a __attribute__((swift_name("init(a:)"))) __attribute__((objc_designated_initializer)); @property (readonly) KtTestGH3992A *a __attribute__((swift_name("a"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestGH3992.D"))) @interface KtTestGH3992D : KtTestGH3992C - (instancetype)initWithA:(KtTestGH3992B *)a __attribute__((swift_name("init(a:)"))) __attribute__((objc_designated_initializer)); @property (readonly) KtTestGH3992B *a __attribute__((swift_name("a"))); -@end; +@end __attribute__((swift_name("TestGH3992.A"))) @interface KtTestGH3992A : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestGH3992.B"))) @interface KtTestGH3992B : KtTestGH3992A - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KDocExport"))) @@ -624,14 +624,14 @@ __attribute__((swift_name("KDocExport"))) @property (readonly) NSString *xyzzy __attribute__((swift_name("xyzzy"))); @property (readonly) NSString *foo __attribute__((swift_name("foo"))); @property int32_t yxxyz __attribute__((swift_name("yxxyz"))); -@end; +@end __attribute__((swift_name("SomeClassWithProperty"))) @interface KtSomeClassWithProperty : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) KtSomeClassWithProperty *heavyFormattedKDocFoo __attribute__((swift_name("heavyFormattedKDocFoo"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KdocExportKt"))) @@ -642,14 +642,14 @@ __attribute__((swift_name("KdocExportKt"))) Other uncaught Kotlin exceptions are fatal. */ + (NSString * _Nullable)whateverA:(NSString *)a error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("whatever(a:)"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideI1"))) @protocol KtKotlinPrivateOverrideI1 @required - (int32_t)i123AbstractMethod __attribute__((swift_name("i123AbstractMethod()"))); - (int32_t)i1OpenMethod __attribute__((swift_name("i1OpenMethod()"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideI2"))) @protocol KtKotlinPrivateOverrideI2 @@ -657,7 +657,7 @@ __attribute__((swift_name("KotlinPrivateOverrideI2"))) - (int32_t)i123AbstractMethod __attribute__((swift_name("i123AbstractMethod()"))); - (int32_t)i234AbstractMethod __attribute__((swift_name("i234AbstractMethod()"))); - (int32_t)i2AbstractMethod __attribute__((swift_name("i2AbstractMethod()"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideA1"))) @interface KtKotlinPrivateOverrideA1 : KtBase @@ -665,7 +665,7 @@ __attribute__((swift_name("KotlinPrivateOverrideA1"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)a1AbstractMethod __attribute__((swift_name("a1AbstractMethod()"))); - (int32_t)a1OpenMethod __attribute__((swift_name("a1OpenMethod()"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideI3"))) @protocol KtKotlinPrivateOverrideI3 @@ -673,34 +673,34 @@ __attribute__((swift_name("KotlinPrivateOverrideI3"))) - (int32_t)i123AbstractMethod __attribute__((swift_name("i123AbstractMethod()"))); - (int32_t)i234AbstractMethod __attribute__((swift_name("i234AbstractMethod()"))); - (int32_t)i3AbstractMethod __attribute__((swift_name("i3AbstractMethod()"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideI4"))) @protocol KtKotlinPrivateOverrideI4 @required - (int32_t)i234AbstractMethod __attribute__((swift_name("i234AbstractMethod()"))); - (int32_t)i4AbstractMethod __attribute__((swift_name("i4AbstractMethod()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KotlinPrivateOverrideKt"))) @interface KtKotlinPrivateOverrideKt : KtBase + (id)createP1 __attribute__((swift_name("createP1()"))); + (id)createP12 __attribute__((swift_name("createP12()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt35940Kt"))) @interface KtKt35940Kt : KtBase + (NSString *)testKt35940 __attribute__((swift_name("testKt35940()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641"))) @interface KtKT38641 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641.IntType"))) @@ -708,7 +708,7 @@ __attribute__((swift_name("KT38641.IntType"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (getter=description, setter=setDescription:) int32_t description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641.Val"))) @@ -716,7 +716,7 @@ __attribute__((swift_name("KT38641.Val"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly, getter=description) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641.Var"))) @@ -724,7 +724,7 @@ __attribute__((swift_name("KT38641.Var"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (getter=description, setter=setDescription:) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641.TwoProperties"))) @@ -733,20 +733,20 @@ __attribute__((swift_name("KT38641.TwoProperties"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly, getter=description) NSString *description_ __attribute__((swift_name("description_"))); @property (readonly) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((swift_name("KT38641.OverrideVal"))) @interface KtKT38641OverrideVal : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly, getter=description) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((swift_name("KT38641OverrideVar"))) @protocol KtKT38641OverrideVar @required @property (getter=description, setter=setDescription:) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt38641Kt"))) @@ -754,46 +754,46 @@ __attribute__((swift_name("Kt38641Kt"))) + (NSString *)getOverrideValDescriptionImpl:(KtKT38641OverrideVal *)impl __attribute__((swift_name("getOverrideValDescription(impl:)"))); + (NSString *)getOverrideVarDescriptionImpl:(id)impl __attribute__((swift_name("getOverrideVarDescription(impl:)"))); + (void)setOverrideVarDescriptionImpl:(id)impl newValue:(NSString *)newValue __attribute__((swift_name("setOverrideVarDescription(impl:newValue:)"))); -@end; +@end __attribute__((swift_name("JsonConfiguration"))) @interface KtJsonConfiguration : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable("This class is deprecated for removal during serialization 1.0 API stabilization.\nFor configuring Json instances, the corresponding builder function can be used instead, e.g. instead of'Json(JsonConfiguration.Stable.copy(isLenient = true))' 'Json { isLenient = true }' should be used.\nInstead of storing JsonConfiguration instances of the code, Json instances can be used directly:'Json(MyJsonConfiguration.copy(prettyPrint = true))' can be replaced with 'Json(from = MyApplicationJson) { prettyPrint = true }'"))); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("MoreTrickyChars"))) @interface KtMoreTrickyChars : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((deprecated("'\"\\@$(){}\r\n"))); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt39206Kt"))) @interface KtKt39206Kt : KtBase + (int32_t)myFunc __attribute__((swift_name("myFunc()"))) __attribute__((deprecated("Don't call this\nPlease"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Ckt41907"))) @interface KtCkt41907 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("Ikt41907"))) @protocol KtIkt41907 @required - (void)fooC:(KtCkt41907 *)c __attribute__((swift_name("foo(c:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt41907Kt"))) @interface KtKt41907Kt : KtBase + (void)escapeCC:(KtCkt41907 *)c __attribute__((swift_name("escapeC(c:)"))); + (void)testKt41907O:(id)o __attribute__((swift_name("testKt41907(o:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43599"))) @@ -801,11 +801,11 @@ __attribute__((swift_name("KT43599"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) NSString *memberProperty __attribute__((swift_name("memberProperty"))); -@end; +@end @interface KtKT43599 (Kt43599Kt) @property (readonly) NSString *extensionProperty __attribute__((swift_name("extensionProperty"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt43599Kt"))) @@ -813,7 +813,7 @@ __attribute__((swift_name("Kt43599Kt"))) + (void)setTopLevelLateinitPropertyValue:(NSString *)value __attribute__((swift_name("setTopLevelLateinitProperty(value:)"))); @property (class, readonly) NSString *topLevelProperty __attribute__((swift_name("topLevelProperty"))); @property (class, readonly) NSString *topLevelLateinitProperty __attribute__((swift_name("topLevelLateinitProperty"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780TestObject"))) @@ -826,7 +826,7 @@ __attribute__((swift_name("KT43780TestObject"))) @property (readonly) int32_t y __attribute__((swift_name("y"))); @property (readonly) NSString *shared __attribute__((swift_name("shared"))); @property (readonly) NSString *Shared __attribute__((swift_name("Shared"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780TestClassWithCompanion"))) @@ -834,7 +834,7 @@ __attribute__((swift_name("KT43780TestClassWithCompanion"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (class, readonly, getter=companion) KtKT43780TestClassWithCompanionCompanion *companion __attribute__((swift_name("companion"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780TestClassWithCompanion.Companion"))) @@ -844,7 +844,7 @@ __attribute__((swift_name("KT43780TestClassWithCompanion.Companion"))) + (instancetype)companion __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtKT43780TestClassWithCompanionCompanion *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t z __attribute__((swift_name("z"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Shared"))) @@ -854,7 +854,7 @@ __attribute__((swift_name("Shared"))) + (instancetype)shared __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared_) KtShared *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Companion"))) @@ -863,7 +863,7 @@ __attribute__((swift_name("Companion"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (class, readonly, getter=companion) KtCompanionCompanion *companion __attribute__((swift_name("companion"))); @property (readonly) int32_t t __attribute__((swift_name("t"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Companion.Companion"))) @@ -873,7 +873,7 @@ __attribute__((swift_name("Companion.Companion"))) + (instancetype)companion __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtCompanionCompanion *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780Enum"))) @@ -884,7 +884,7 @@ __attribute__((swift_name("KT43780Enum"))) @property (class, readonly) KtKT43780Enum *otherEntry __attribute__((swift_name("otherEntry"))); @property (class, readonly) KtKT43780Enum *companion __attribute__((swift_name("companion"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780Enum.Companion"))) @@ -894,7 +894,7 @@ __attribute__((swift_name("KT43780Enum.Companion"))) + (instancetype)companion __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtKT43780EnumCompanion *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ClassWithInternalCompanion"))) @@ -902,7 +902,7 @@ __attribute__((swift_name("ClassWithInternalCompanion"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t y __attribute__((swift_name("y"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ClassWithPrivateCompanion"))) @@ -910,25 +910,25 @@ __attribute__((swift_name("ClassWithPrivateCompanion"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t y __attribute__((swift_name("y"))); -@end; +@end __attribute__((swift_name("Host"))) @protocol KtHost @required @property (readonly) NSString *test __attribute__((swift_name("test"))); -@end; +@end __attribute__((swift_name("AbstractHost"))) @interface KtAbstractHost : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt46431Kt"))) @interface KtKt46431Kt : KtBase + (id)createAbstractHost __attribute__((swift_name("createAbstractHost()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT49937"))) @@ -936,7 +936,7 @@ __attribute__((swift_name("KT49937"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)description __attribute__((swift_name("description()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("LibraryKt"))) @@ -944,7 +944,7 @@ __attribute__((swift_name("LibraryKt"))) + (NSString *)readDataFromLibraryClassInput:(KtA *)input __attribute__((swift_name("readDataFromLibraryClass(input:)"))); + (NSString *)readDataFromLibraryInterfaceInput:(id)input __attribute__((swift_name("readDataFromLibraryInterface(input:)"))); + (NSString *)readDataFromLibraryEnumInput:(KtE *)input __attribute__((swift_name("readDataFromLibraryEnum(input:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ArraysConstructor"))) @@ -952,7 +952,7 @@ __attribute__((swift_name("ArraysConstructor"))) - (instancetype)initWithInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("init(int1:int2:)"))) __attribute__((objc_designated_initializer)); - (void)setInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("set(int1:int2:)"))); - (NSString *)log __attribute__((swift_name("log()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ArraysDefault"))) @@ -960,7 +960,7 @@ __attribute__((swift_name("ArraysDefault"))) - (instancetype)initWithInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("init(int1:int2:)"))) __attribute__((objc_designated_initializer)); - (void)setInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("set(int1:int2:)"))); - (NSString *)log __attribute__((swift_name("log()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ArraysInitBlock"))) @@ -968,7 +968,7 @@ __attribute__((swift_name("ArraysInitBlock"))) - (instancetype)initWithInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("init(int1:int2:)"))) __attribute__((objc_designated_initializer)); - (void)setInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("set(int1:int2:)"))); - (NSString *)log __attribute__((swift_name("log()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KotlinLivenessTracker"))) @@ -979,14 +979,14 @@ __attribute__((swift_name("KotlinLivenessTracker"))) - (BOOL)isEmpty __attribute__((swift_name("isEmpty()"))); - (BOOL)objectsAreDead __attribute__((swift_name("objectsAreDead()"))); @property (readonly) NSMutableArray *> *weakRefs __attribute__((swift_name("weakRefs"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KotlinObject"))) @interface KtKotlinObject : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("NoAutoreleaseSendHelper"))) @protocol KtNoAutoreleaseSendHelper @@ -1004,7 +1004,7 @@ __attribute__((swift_name("NoAutoreleaseSendHelper"))) Other uncaught Kotlin exceptions are fatal. */ - (void)sendCompletionWithCompletionHandler:(void (^)(id _Nullable_result, NSError * _Nullable))completionHandler __attribute__((swift_name("sendCompletion(completionHandler:)"))); -@end; +@end __attribute__((swift_name("NoAutoreleaseReceiveHelper"))) @protocol KtNoAutoreleaseReceiveHelper @@ -1015,7 +1015,7 @@ __attribute__((swift_name("NoAutoreleaseReceiveHelper"))) - (NSString *)receiveString __attribute__((swift_name("receiveString()"))); - (id)receiveNumber __attribute__((swift_name("receiveNumber()"))); - (KtKotlinObject *(^)(void))receiveBlock __attribute__((swift_name("receiveBlock()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseKotlinSendHelper"))) @@ -1035,7 +1035,7 @@ __attribute__((swift_name("NoAutoreleaseKotlinSendHelper"))) */ - (void)sendCompletionWithCompletionHandler:(void (^)(id _Nullable_result, NSError * _Nullable))completionHandler __attribute__((swift_name("sendCompletion(completionHandler:)"))); @property (readonly) KtKotlinLivenessTracker *kotlinLivenessTracker __attribute__((swift_name("kotlinLivenessTracker"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseKotlinReceiveHelper"))) @@ -1049,7 +1049,7 @@ __attribute__((swift_name("NoAutoreleaseKotlinReceiveHelper"))) - (KtKotlinObject *(^)(void))receiveBlock __attribute__((swift_name("receiveBlock()"))); @property id swiftObject __attribute__((swift_name("swiftObject"))); @property (readonly) KtKotlinLivenessTracker *kotlinLivenessTracker __attribute__((swift_name("kotlinLivenessTracker"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseSingleton"))) @@ -1059,7 +1059,7 @@ __attribute__((swift_name("NoAutoreleaseSingleton"))) + (instancetype)noAutoreleaseSingleton __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtNoAutoreleaseSingleton *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseEnum"))) @@ -1070,7 +1070,7 @@ __attribute__((swift_name("NoAutoreleaseEnum"))) @property (class, readonly) KtNoAutoreleaseEnum *entry __attribute__((swift_name("entry"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseKt"))) @@ -1094,37 +1094,37 @@ __attribute__((swift_name("NoAutoreleaseKt"))) + (void * _Nullable)objc_autoreleasePoolPush __attribute__((swift_name("objc_autoreleasePoolPush()"))); + (void)objc_autoreleasePoolPopHandle:(void * _Nullable)handle __attribute__((swift_name("objc_autoreleasePoolPop(handle:)"))); + (void)useIntArrayArray:(KtKotlinIntArray *)array __attribute__((swift_name("useIntArray(array:)"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods2"))) @protocol KtOverrideKotlinMethods2 @required - (int32_t)one __attribute__((swift_name("one()"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods3"))) @interface KtOverrideKotlinMethods3 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods4"))) @interface KtOverrideKotlinMethods4 : KtOverrideKotlinMethods3 - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)one __attribute__((swift_name("one()"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods5"))) @protocol KtOverrideKotlinMethods5 @required - (int32_t)one __attribute__((swift_name("one()"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods6"))) @protocol KtOverrideKotlinMethods6 @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("OverrideKotlinMethodsKt"))) @@ -1164,7 +1164,7 @@ __attribute__((swift_name("OverrideKotlinMethodsKt"))) @note This method converts all Kotlin exceptions to errors. */ + (BOOL)test6Obj:(id)obj error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("test6(obj:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("OverrideMethodsOfAnyKt"))) @@ -1174,11 +1174,11 @@ __attribute__((swift_name("OverrideMethodsOfAnyKt"))) @note This method converts all Kotlin exceptions to errors. */ + (BOOL)testObj:(id)obj other:(id)other swift:(BOOL)swift error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("test(obj:other:swift:)"))); -@end; +@end __attribute__((swift_name("Person"))) @interface KtPerson : KtBase -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Person.User"))) @@ -1190,13 +1190,13 @@ __attribute__((swift_name("Person.User"))) - (int32_t)component1 __attribute__((swift_name("component1()"))) __attribute__((deprecated("use corresponding property instead"))); - (KtPersonUser *)doCopyId:(int32_t)id __attribute__((swift_name("doCopy(id:)"))); @property (readonly) int32_t id __attribute__((swift_name("id"))); -@end; +@end __attribute__((swift_name("Person.Worker"))) @interface KtPersonWorker : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Person.WorkerEmployee"))) @@ -1210,7 +1210,7 @@ __attribute__((swift_name("Person.WorkerEmployee"))) - (int32_t)component1 __attribute__((swift_name("component1()"))) __attribute__((deprecated("use corresponding property instead"))); - (KtPersonWorkerEmployee *)doCopyId:(int32_t)id __attribute__((swift_name("doCopy(id:)"))); @property (readonly) int32_t id __attribute__((swift_name("id"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Person.WorkerContractor"))) @@ -1224,7 +1224,7 @@ __attribute__((swift_name("Person.WorkerContractor"))) - (int32_t)component1 __attribute__((swift_name("component1()"))) __attribute__((deprecated("use corresponding property instead"))); - (KtPersonWorkerContractor *)doCopyId:(int32_t)id __attribute__((swift_name("doCopy(id:)"))); @property (readonly) int32_t id __attribute__((swift_name("id"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ThrowableAsError"))) @@ -1234,7 +1234,7 @@ __attribute__((swift_name("ThrowableAsError"))) - (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithCause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithMessage:(NSString * _Nullable)message cause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((swift_name("ThrowsThrowableAsError"))) @protocol KtThrowsThrowableAsError @@ -1244,7 +1244,7 @@ __attribute__((swift_name("ThrowsThrowableAsError"))) @note This method converts all Kotlin exceptions to errors. */ - (BOOL)throwErrorAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("throwError()"))); -@end; +@end __attribute__((swift_name("ThrowsThrowableAsErrorSuspend"))) @protocol KtThrowsThrowableAsErrorSuspend @@ -1255,14 +1255,14 @@ __attribute__((swift_name("ThrowsThrowableAsErrorSuspend"))) Other uncaught Kotlin exceptions are fatal. */ - (void)throwErrorWithCompletionHandler:(void (^)(KtKotlinUnit * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("throwError(completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ThrowableAsErrorKt"))) @interface KtThrowableAsErrorKt : KtBase + (KtThrowableAsError * _Nullable)callAndCatchThrowableAsErrorThrowsThrowableAsError:(id)throwsThrowableAsError __attribute__((swift_name("callAndCatchThrowableAsError(throwsThrowableAsError:)"))); + (KtThrowableAsError * _Nullable)callAndCatchThrowableAsErrorSuspendThrowsThrowableAsErrorSuspend:(id)throwsThrowableAsErrorSuspend __attribute__((swift_name("callAndCatchThrowableAsErrorSuspend(throwsThrowableAsErrorSuspend:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ThrowsEmptyKt"))) @@ -1272,7 +1272,7 @@ __attribute__((swift_name("ThrowsEmptyKt"))) @warning All uncaught Kotlin exceptions are fatal. */ + (BOOL)throwsEmptyAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("throwsEmpty()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelManglingAKt"))) @@ -1281,14 +1281,14 @@ __attribute__((swift_name("TopLevelManglingAKt"))) + (int32_t)sameNumberValue:(int32_t)value __attribute__((swift_name("sameNumber(value:)"))); + (int64_t)sameNumberValue:(int64_t)value __attribute__((swift_name("sameNumber(value:)"))); @property (class, readonly) NSString *bar __attribute__((swift_name("bar"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelManglingBKt"))) @interface KtTopLevelManglingBKt : KtBase + (NSString *)foo __attribute__((swift_name("foo()"))); @property (class, readonly) NSString *bar __attribute__((swift_name("bar"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DelegateClass"))) @@ -1297,27 +1297,27 @@ __attribute__((swift_name("DelegateClass"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (KtKotlinArray *)getValueThisRef:(KtKotlinNothing * _Nullable)thisRef property:(id)property __attribute__((swift_name("getValue(thisRef:property:)"))); - (void)setValueThisRef:(KtKotlinNothing * _Nullable)thisRef property:(id)property value:(KtKotlinArray *)value __attribute__((swift_name("setValue(thisRef:property:value:)"))); -@end; +@end __attribute__((swift_name("I"))) @protocol KtI @required - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DefaultInterfaceExt"))) @interface KtDefaultInterfaceExt : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("OpenClassI"))) @interface KtOpenClassI : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("FinalClassExtOpen"))) @@ -1325,7 +1325,7 @@ __attribute__((swift_name("FinalClassExtOpen"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((swift_name("MultiExtClass"))) @interface KtMultiExtClass : KtOpenClassI @@ -1333,7 +1333,7 @@ __attribute__((swift_name("MultiExtClass"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (id)piFun __attribute__((swift_name("piFun()"))); - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((swift_name("ConstrClass"))) @interface KtConstrClass : KtOpenClassI @@ -1343,7 +1343,7 @@ __attribute__((swift_name("ConstrClass"))) @property (readonly) int32_t i __attribute__((swift_name("i"))); @property (readonly) NSString *s __attribute__((swift_name("s"))); @property (readonly) id a __attribute__((swift_name("a"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ExtConstrClass"))) @@ -1352,7 +1352,7 @@ __attribute__((swift_name("ExtConstrClass"))) - (instancetype)initWithI:(int32_t)i s:(NSString *)s a:(id)a __attribute__((swift_name("init(i:s:a:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (NSString *)iFun __attribute__((swift_name("iFun()"))); @property (readonly) int32_t i __attribute__((swift_name("i"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Enumeration"))) @@ -1365,7 +1365,7 @@ __attribute__((swift_name("Enumeration"))) @property (class, readonly) KtEnumeration *temperature __attribute__((swift_name("temperature"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) int32_t enumValue __attribute__((swift_name("enumValue"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TripleVals"))) @@ -1381,7 +1381,7 @@ __attribute__((swift_name("TripleVals"))) @property (readonly) T _Nullable first __attribute__((swift_name("first"))); @property (readonly) T _Nullable second __attribute__((swift_name("second"))); @property (readonly) T _Nullable third __attribute__((swift_name("third"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TripleVars"))) @@ -1397,14 +1397,14 @@ __attribute__((swift_name("TripleVars"))) @property T _Nullable first __attribute__((swift_name("first"))); @property T _Nullable second __attribute__((swift_name("second"))); @property T _Nullable third __attribute__((swift_name("third"))); -@end; +@end __attribute__((swift_name("WithCompanionAndObject"))) @interface KtWithCompanionAndObject : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (class, readonly, getter=companion) KtWithCompanionAndObjectCompanion *companion __attribute__((swift_name("companion"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithCompanionAndObject.Companion"))) @@ -1415,7 +1415,7 @@ __attribute__((swift_name("WithCompanionAndObject.Companion"))) @property (class, readonly, getter=shared) KtWithCompanionAndObjectCompanion *shared __attribute__((swift_name("shared"))); @property (readonly) NSString *str __attribute__((swift_name("str"))); @property id _Nullable named __attribute__((swift_name("named"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithCompanionAndObject.Named"))) @@ -1427,7 +1427,7 @@ __attribute__((swift_name("WithCompanionAndObject.Named"))) + (instancetype)named __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtWithCompanionAndObjectNamed *shared __attribute__((swift_name("shared"))); - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("MyException"))) @@ -1437,7 +1437,7 @@ __attribute__((swift_name("MyException"))) - (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithMessage:(NSString * _Nullable)message cause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithCause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("MyError"))) @@ -1447,7 +1447,7 @@ __attribute__((swift_name("MyError"))) - (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithMessage:(NSString * _Nullable)message cause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithCause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((swift_name("SwiftOverridableMethodsWithThrows"))) @protocol KtSwiftOverridableMethodsWithThrows @@ -1476,7 +1476,7 @@ __attribute__((swift_name("SwiftOverridableMethodsWithThrows"))) Other uncaught Kotlin exceptions are fatal. */ - (KtInt *(^ _Nullable)(void))blockAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("block()"))); -@end; +@end __attribute__((swift_name("MethodsWithThrows"))) @protocol KtMethodsWithThrows @@ -1529,7 +1529,7 @@ __attribute__((swift_name("MethodsWithThrows"))) Other uncaught Kotlin exceptions are fatal. */ - (double)doubleAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("double()"))) __attribute__((swift_error(nonnull_error))); -@end; +@end __attribute__((swift_name("MethodsWithThrowsUnitCaller"))) @protocol KtMethodsWithThrowsUnitCaller @@ -1540,7 +1540,7 @@ __attribute__((swift_name("MethodsWithThrowsUnitCaller"))) Other uncaught Kotlin exceptions are fatal. */ - (BOOL)callMethods:(id)methods error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("call(methods:)"))); -@end; +@end __attribute__((swift_name("Throwing"))) @interface KtThrowing : KtBase @@ -1622,7 +1622,7 @@ __attribute__((swift_name("Throwing"))) Other uncaught Kotlin exceptions are fatal. */ - (double)doubleAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("double()"))) __attribute__((swift_error(nonnull_error))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NotThrowing"))) @@ -1705,7 +1705,7 @@ __attribute__((swift_name("NotThrowing"))) Other uncaught Kotlin exceptions are fatal. */ - (double)doubleAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("double()"))) __attribute__((swift_error(nonnull_error))); -@end; +@end __attribute__((swift_name("ThrowsWithBridgeBase"))) @protocol KtThrowsWithBridgeBase @@ -1716,7 +1716,7 @@ __attribute__((swift_name("ThrowsWithBridgeBase"))) Other uncaught Kotlin exceptions are fatal. */ - (id _Nullable)plusOneX:(int32_t)x error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("plusOne(x:)"))); -@end; +@end __attribute__((swift_name("ThrowsWithBridge"))) @interface KtThrowsWithBridge : KtBase @@ -1728,21 +1728,21 @@ __attribute__((swift_name("ThrowsWithBridge"))) Other uncaught Kotlin exceptions are fatal. */ - (KtInt * _Nullable)plusOneX:(int32_t)x error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("plusOne(x:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Deeply"))) @interface KtDeeply : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Deeply.Nested"))) @interface KtDeeplyNested : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Deeply.NestedType"))) @@ -1750,26 +1750,26 @@ __attribute__((swift_name("Deeply.NestedType"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t thirtyTwo __attribute__((swift_name("thirtyTwo"))); -@end; +@end __attribute__((swift_name("DeeplyNestedIType"))) @protocol KtDeeplyNestedIType @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithGenericDeeply"))) @interface KtWithGenericDeeply : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithGenericDeeply.Nested"))) @interface KtWithGenericDeeplyNested : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithGenericDeeplyNestedType"))) @@ -1777,14 +1777,14 @@ __attribute__((swift_name("WithGenericDeeplyNestedType"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t thirtyThree __attribute__((swift_name("thirtyThree"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TypeOuter"))) @interface KtTypeOuter : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TypeOuter.Type_"))) @@ -1792,7 +1792,7 @@ __attribute__((swift_name("TypeOuter.Type_"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t thirtyFour __attribute__((swift_name("thirtyFour"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("CKeywords"))) @@ -1808,55 +1808,55 @@ __attribute__((swift_name("CKeywords"))) @property (readonly, getter=float) float float_ __attribute__((swift_name("float_"))); @property (readonly, getter=enum) int32_t enum_ __attribute__((swift_name("enum_"))); @property (getter=goto, setter=setGoto:) BOOL goto_ __attribute__((swift_name("goto_"))); -@end; +@end __attribute__((swift_name("Base1"))) @protocol KtBase1 @required - (KtInt * _Nullable)sameValue:(KtInt * _Nullable)value __attribute__((swift_name("same(value:)"))); -@end; +@end __attribute__((swift_name("ExtendedBase1"))) @protocol KtExtendedBase1 @required -@end; +@end __attribute__((swift_name("Base2"))) @protocol KtBase2 @required - (KtInt * _Nullable)sameValue:(KtInt * _Nullable)value __attribute__((swift_name("same(value:)"))); -@end; +@end __attribute__((swift_name("Base23"))) @interface KtBase23 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (KtInt *)sameValue:(KtInt * _Nullable)value __attribute__((swift_name("same(value:)"))); -@end; +@end __attribute__((swift_name("Transform"))) @protocol KtTransform @required - (id _Nullable)mapValue:(id _Nullable)value __attribute__((swift_name("map(value:)"))); -@end; +@end __attribute__((swift_name("TransformWithDefault"))) @protocol KtTransformWithDefault @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TransformInheritingDefault"))) @interface KtTransformInheritingDefault : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("TransformIntString"))) @protocol KtTransformIntString @required - (NSString *)mapIntValue:(int32_t)intValue __attribute__((swift_name("map(intValue:)"))); -@end; +@end __attribute__((swift_name("TransformIntToString"))) @interface KtTransformIntToString : KtBase @@ -1864,7 +1864,7 @@ __attribute__((swift_name("TransformIntToString"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)mapValue:(KtInt *)intValue __attribute__((swift_name("map(value:)"))); - (NSString *)mapIntValue:(int32_t)intValue __attribute__((swift_name("map(intValue:)"))); -@end; +@end __attribute__((swift_name("TransformIntToDecimalString"))) @interface KtTransformIntToDecimalString : KtTransformIntToString @@ -1872,28 +1872,28 @@ __attribute__((swift_name("TransformIntToDecimalString"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)mapValue:(KtInt *)intValue __attribute__((swift_name("map(value:)"))); - (NSString *)mapIntValue:(int32_t)intValue __attribute__((swift_name("map(intValue:)"))); -@end; +@end __attribute__((swift_name("TransformIntToLong"))) @interface KtTransformIntToLong : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (KtLong *)mapValue:(KtInt *)value __attribute__((swift_name("map(value:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2931"))) @interface KtGH2931 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2931.Data"))) @interface KtGH2931Data : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2931.Holder"))) @@ -1901,7 +1901,7 @@ __attribute__((swift_name("GH2931.Holder"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) KtGH2931Data *data __attribute__((swift_name("data"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2945"))) @@ -1909,7 +1909,7 @@ __attribute__((swift_name("GH2945"))) - (instancetype)initWithErrno:(int32_t)errno __attribute__((swift_name("init(errno:)"))) __attribute__((objc_designated_initializer)); - (int32_t)testErrnoInSelectorP:(int32_t)p errno:(int32_t)errno __attribute__((swift_name("testErrnoInSelector(p:errno:)"))); @property int32_t errno __attribute__((swift_name("errno"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2830"))) @@ -1917,12 +1917,12 @@ __attribute__((swift_name("GH2830"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (id)getI __attribute__((swift_name("getI()"))); -@end; +@end __attribute__((swift_name("GH2830I"))) @protocol KtGH2830I @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2959"))) @@ -1930,20 +1930,20 @@ __attribute__((swift_name("GH2959"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSArray> *)getIId:(int32_t)id __attribute__((swift_name("getI(id:)"))); -@end; +@end __attribute__((swift_name("GH2959I"))) @protocol KtGH2959I @required @property (readonly) int32_t id __attribute__((swift_name("id"))); -@end; +@end __attribute__((swift_name("IntBlocks"))) @protocol KtIntBlocks @required - (id _Nullable)getPlusOneBlock __attribute__((swift_name("getPlusOneBlock()"))); - (int32_t)callBlockArgument:(int32_t)argument block:(id _Nullable)block __attribute__((swift_name("callBlock(argument:block:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("IntBlocksImpl"))) @@ -1954,14 +1954,14 @@ __attribute__((swift_name("IntBlocksImpl"))) @property (class, readonly, getter=shared) KtIntBlocksImpl *shared __attribute__((swift_name("shared"))); - (KtInt *(^)(KtInt *))getPlusOneBlock __attribute__((swift_name("getPlusOneBlock()"))); - (int32_t)callBlockArgument:(int32_t)argument block:(KtInt *(^)(KtInt *))block __attribute__((swift_name("callBlock(argument:block:)"))); -@end; +@end __attribute__((swift_name("UnitBlockCoercion"))) @protocol KtUnitBlockCoercion @required - (id)coerceBlock:(void (^)(void))block __attribute__((swift_name("coerce(block:)"))); - (void (^)(void))uncoerceBlock:(id)block __attribute__((swift_name("uncoerce(block:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("UnitBlockCoercionImpl"))) @@ -1972,11 +1972,11 @@ __attribute__((swift_name("UnitBlockCoercionImpl"))) @property (class, readonly, getter=shared) KtUnitBlockCoercionImpl *shared __attribute__((swift_name("shared"))); - (KtKotlinUnit *(^)(void))coerceBlock:(void (^)(void))block __attribute__((swift_name("coerce(block:)"))); - (void (^)(void))uncoerceBlock:(KtKotlinUnit *(^)(void))block __attribute__((swift_name("uncoerce(block:)"))); -@end; +@end __attribute__((swift_name("MyAbstractList"))) @interface KtMyAbstractList : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestKClass"))) @@ -1987,54 +1987,54 @@ __attribute__((swift_name("TestKClass"))) - (id _Nullable)getKotlinClassProtocol:(Protocol *)protocol __attribute__((swift_name("getKotlinClass(protocol:)"))); - (BOOL)isTestKClassKClass:(id)kClass __attribute__((swift_name("isTestKClass(kClass:)"))); - (BOOL)isIKClass:(id)kClass __attribute__((swift_name("isI(kClass:)"))); -@end; +@end __attribute__((swift_name("TestKClassI"))) @protocol KtTestKClassI @required -@end; +@end __attribute__((swift_name("ForwardI2"))) @protocol KtForwardI2 @required -@end; +@end __attribute__((swift_name("ForwardI1"))) @protocol KtForwardI1 @required - (id)getForwardI2 __attribute__((swift_name("getForwardI2()"))); -@end; +@end __attribute__((swift_name("ForwardC2"))) @interface KtForwardC2 : KtForwardC1 - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("ForwardC1"))) @interface KtForwardC1 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (KtForwardC2 *)getForwardC2 __attribute__((swift_name("getForwardC2()"))); -@end; +@end __attribute__((swift_name("TestSR10177Workaround"))) @protocol KtTestSR10177Workaround @required -@end; +@end __attribute__((swift_name("TestClashes1"))) @protocol KtTestClashes1 @required @property (readonly) int32_t clashingProperty __attribute__((swift_name("clashingProperty"))); -@end; +@end __attribute__((swift_name("TestClashes2"))) @protocol KtTestClashes2 @required @property (readonly) id clashingProperty __attribute__((swift_name("clashingProperty"))); @property (readonly) id clashingProperty_ __attribute__((swift_name("clashingProperty_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestClashesImpl"))) @@ -2043,7 +2043,7 @@ __attribute__((swift_name("TestClashesImpl"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t clashingProperty __attribute__((swift_name("clashingProperty"))); @property (readonly) KtInt *clashingProperty_ __attribute__((swift_name("clashingProperty_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestInvalidIdentifiers"))) @@ -2054,7 +2054,7 @@ __attribute__((swift_name("TestInvalidIdentifiers"))) - (int32_t)aSdSdS1:(int32_t)S1 _2:(int32_t)_2 _3:(int32_t)_3 __attribute__((swift_name("aSdSd(S1:_2:_3:)"))); @property (readonly) unichar __ __attribute__((swift_name("__"))); @property (readonly) unichar __ __attribute__((swift_name("__"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestInvalidIdentifiers.E"))) @@ -2068,7 +2068,7 @@ __attribute__((swift_name("TestInvalidIdentifiers.E"))) @property (class, readonly) KtTestInvalidIdentifiersE *__ __attribute__((swift_name("__"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) int32_t value __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestInvalidIdentifiers.CompanionS"))) @@ -2078,7 +2078,7 @@ __attribute__((swift_name("TestInvalidIdentifiers.CompanionS"))) + (instancetype)companionS __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtTestInvalidIdentifiersCompanionS *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t _42 __attribute__((swift_name("_42"))); -@end; +@end __attribute__((swift_name("TestDeprecation"))) @interface KtTestDeprecation : KtBase @@ -2122,67 +2122,67 @@ __attribute__((swift_name("TestDeprecation"))) @property id _Nullable normalVar __attribute__((swift_name("normalVar"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))); -@end; +@end __attribute__((swift_name("TestDeprecation.OpenHidden"))) @interface KtTestDeprecationOpenHidden : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingHidden"))) @interface KtTestDeprecationExtendingHidden : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingHiddenNested"))) @interface KtTestDeprecationExtendingHiddenNested : NSObject -@end; +@end __attribute__((swift_name("TestDeprecationHiddenInterface"))) @protocol KtTestDeprecationHiddenInterface @required -@end; +@end __attribute__((swift_name("TestDeprecation.ImplementingHidden"))) @interface KtTestDeprecationImplementingHidden : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)effectivelyHidden __attribute__((swift_name("effectivelyHidden()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.Hidden"))) @interface KtTestDeprecationHidden : NSObject -@end; +@end __attribute__((swift_name("TestDeprecation.HiddenNested"))) @interface KtTestDeprecationHiddenNested : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenNestedNested"))) @interface KtTestDeprecationHiddenNestedNested : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenNestedInner"))) @interface KtTestDeprecationHiddenNestedInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenInner"))) @interface KtTestDeprecationHiddenInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenInnerInner"))) @interface KtTestDeprecationHiddenInnerInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingNestedInHidden"))) @interface KtTestDeprecationExtendingNestedInHidden : NSObject -@end; +@end __attribute__((swift_name("TestDeprecation.OpenError"))) @interface KtTestDeprecationOpenError : KtTestDeprecation @@ -2191,26 +2191,26 @@ __attribute__((swift_name("TestDeprecation.OpenError"))) - (instancetype)initWithError:(int16_t)error __attribute__((swift_name("init(error:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithWarning:(int32_t)warning __attribute__((swift_name("init(warning:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithNormal:(int64_t)normal __attribute__((swift_name("init(normal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingError"))) @interface KtTestDeprecationExtendingError : KtTestDeprecationOpenError - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("TestDeprecationErrorInterface"))) @protocol KtTestDeprecationErrorInterface @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ImplementingError"))) @interface KtTestDeprecationImplementingError : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.Error"))) @@ -2220,7 +2220,7 @@ __attribute__((swift_name("TestDeprecation.Error"))) - (instancetype)initWithError:(int16_t)error __attribute__((swift_name("init(error:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithWarning:(int32_t)warning __attribute__((swift_name("init(warning:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithNormal:(int64_t)normal __attribute__((swift_name("init(normal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((swift_name("TestDeprecation.OpenWarning"))) @interface KtTestDeprecationOpenWarning : KtTestDeprecation @@ -2229,26 +2229,26 @@ __attribute__((swift_name("TestDeprecation.OpenWarning"))) - (instancetype)initWithError:(int16_t)error __attribute__((swift_name("init(error:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithWarning:(int32_t)warning __attribute__((swift_name("init(warning:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithNormal:(int64_t)normal __attribute__((swift_name("init(normal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingWarning"))) @interface KtTestDeprecationExtendingWarning : KtTestDeprecationOpenWarning - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("TestDeprecationWarningInterface"))) @protocol KtTestDeprecationWarningInterface @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ImplementingWarning"))) @interface KtTestDeprecationImplementingWarning : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.Warning"))) @@ -2258,7 +2258,7 @@ __attribute__((swift_name("TestDeprecation.Warning"))) - (instancetype)initWithError:(int16_t)error __attribute__((swift_name("init(error:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithWarning:(int32_t)warning __attribute__((swift_name("init(warning:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithNormal:(int64_t)normal __attribute__((swift_name("init(normal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenOverride"))) @@ -2277,7 +2277,7 @@ __attribute__((swift_name("TestDeprecation.HiddenOverride"))) @property id _Nullable openWarningVar __attribute__((swift_name("openWarningVar"))) __attribute__((unavailable("hidden"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))) __attribute__((unavailable("hidden"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))) __attribute__((unavailable("hidden"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ErrorOverride"))) @@ -2300,7 +2300,7 @@ __attribute__((swift_name("TestDeprecation.ErrorOverride"))) @property id _Nullable openWarningVar __attribute__((swift_name("openWarningVar"))) __attribute__((unavailable("error"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))) __attribute__((unavailable("error"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))) __attribute__((unavailable("error"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.WarningOverride"))) @@ -2323,7 +2323,7 @@ __attribute__((swift_name("TestDeprecation.WarningOverride"))) @property id _Nullable openWarningVar __attribute__((swift_name("openWarningVar"))) __attribute__((deprecated("warning"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))) __attribute__((deprecated("warning"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))) __attribute__((deprecated("warning"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.NormalOverride"))) @@ -2343,37 +2343,37 @@ __attribute__((swift_name("TestDeprecation.NormalOverride"))) @property id _Nullable openWarningVar __attribute__((swift_name("openWarningVar"))) __attribute__((deprecated("Overrides deprecated member in 'conversions.TestDeprecation'. warning"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden"))) @interface KtTopLevelHidden : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.Nested"))) @interface KtTopLevelHiddenNested : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.NestedNested"))) @interface KtTopLevelHiddenNestedNested : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.NestedInner"))) @interface KtTopLevelHiddenNestedInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.Inner"))) @interface KtTopLevelHiddenInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.InnerInner"))) @interface KtTopLevelHiddenInnerInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestWeakRefs"))) @@ -2382,7 +2382,7 @@ __attribute__((swift_name("TestWeakRefs"))) - (id)getObj __attribute__((swift_name("getObj()"))); - (void)clearObj __attribute__((swift_name("clearObj()"))); - (NSArray *)createCycle __attribute__((swift_name("createCycle()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("SharedRefs"))) @@ -2396,7 +2396,7 @@ __attribute__((swift_name("SharedRefs"))) - (void (^)(void))createFrozenLambda __attribute__((swift_name("createFrozenLambda()"))); - (NSMutableArray *)createFrozenCollection __attribute__((swift_name("createFrozenCollection()"))); - (BOOL)hasAliveObjects __attribute__((swift_name("hasAliveObjects()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("SharedRefs.MutableData"))) @@ -2405,44 +2405,44 @@ __attribute__((swift_name("SharedRefs.MutableData"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (void)update __attribute__((swift_name("update()"))); @property int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((swift_name("TestRememberNewObject"))) @protocol KtTestRememberNewObject @required - (id)getObject __attribute__((swift_name("getObject()"))); - (void)waitForCleanup __attribute__((swift_name("waitForCleanup()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT49497Model"))) @interface KtKT49497Model : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("ClassForTypeCheck"))) @interface KtClassForTypeCheck : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("InterfaceForTypeCheck"))) @protocol KtInterfaceForTypeCheck @required -@end; +@end __attribute__((swift_name("IAbstractInterface"))) @protocol KtIAbstractInterface @required - (int32_t)foo __attribute__((swift_name("foo()"))); -@end; +@end __attribute__((swift_name("IAbstractInterface2"))) @protocol KtIAbstractInterface2 @required - (int32_t)foo __attribute__((swift_name("foo()"))); -@end; +@end __attribute__((swift_name("AbstractInterfaceBase"))) @interface KtAbstractInterfaceBase : KtBase @@ -2450,26 +2450,26 @@ __attribute__((swift_name("AbstractInterfaceBase"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)foo __attribute__((swift_name("foo()"))); - (int32_t)bar __attribute__((swift_name("bar()"))); -@end; +@end __attribute__((swift_name("AbstractInterfaceBase2"))) @interface KtAbstractInterfaceBase2 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("AbstractInterfaceBase3"))) @interface KtAbstractInterfaceBase3 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)foo __attribute__((swift_name("foo()"))); -@end; +@end __attribute__((swift_name("GH3525Base"))) @interface KtGH3525Base : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH3525"))) @@ -2480,7 +2480,7 @@ __attribute__((swift_name("GH3525"))) + (instancetype)new __attribute__((unavailable)); + (instancetype)gH3525 __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtGH3525 *shared __attribute__((swift_name("shared"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestStringConversion"))) @@ -2488,7 +2488,7 @@ __attribute__((swift_name("TestStringConversion"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property id str __attribute__((swift_name("str"))); -@end; +@end __attribute__((swift_name("GH3825"))) @protocol KtGH3825 @@ -2511,7 +2511,7 @@ __attribute__((swift_name("GH3825"))) Other uncaught Kotlin exceptions are fatal. */ - (BOOL)call2Callback:(void (^)(void))callback doThrow:(BOOL)doThrow error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("call2(callback:doThrow:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH3825KotlinImpl"))) @@ -2536,22 +2536,22 @@ __attribute__((swift_name("GH3825KotlinImpl"))) Other uncaught Kotlin exceptions are fatal. */ - (BOOL)call2Callback:(void (^)(void))callback doThrow:(BOOL)doThrow error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("call2(callback:doThrow:)"))); -@end; +@end __attribute__((swift_name("Foo_FakeOverrideInInterface"))) @protocol KtFoo_FakeOverrideInInterface @required - (void)fooT:(id _Nullable)t __attribute__((swift_name("foo(t:)"))); -@end; +@end __attribute__((swift_name("Bar_FakeOverrideInInterface"))) @protocol KtBar_FakeOverrideInInterface @required -@end; +@end @interface KtEnumeration (ValuesKt) - (KtEnumeration *)getAnswer __attribute__((swift_name("getAnswer()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ValuesKt"))) @@ -2734,38 +2734,38 @@ __attribute__((swift_name("ValuesKt"))) @property (class) int32_t gh3525BaseInitCount __attribute__((swift_name("gh3525BaseInitCount"))); @property (class) int32_t gh3525InitCount __attribute__((swift_name("gh3525InitCount"))); @property (class, readonly) BOOL isExperimentalMM __attribute__((swift_name("isExperimentalMM"))); -@end; +@end __attribute__((swift_name("InvariantSuper"))) @interface KtInvariantSuper : KtBase -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Invariant"))) @interface KtInvariant : KtInvariantSuper - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("OutVariantSuper"))) @interface KtOutVariantSuper<__covariant T> : KtBase -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("OutVariant"))) @interface KtOutVariant<__covariant T> : KtOutVariantSuper - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("InVariantSuper"))) @interface KtInVariantSuper<__contravariant T> : KtBase -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("InVariant"))) @interface KtInVariant<__contravariant T> : KtInVariantSuper - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end diff --git a/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h b/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h index 2a473ac7acb..77ec0142003 100644 --- a/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h +++ b/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h @@ -3,22 +3,22 @@ __attribute__((swift_name("KotlinBase"))) - (instancetype)init __attribute__((unavailable)); + (instancetype)new __attribute__((unavailable)); + (void)initialize __attribute__((objc_requires_super)); -@end; +@end @interface KtBase (KtBaseCopying) -@end; +@end __attribute__((swift_name("KotlinMutableSet"))) @interface KtMutableSet : NSMutableSet -@end; +@end __attribute__((swift_name("KotlinMutableDictionary"))) @interface KtMutableDictionary : NSMutableDictionary -@end; +@end @interface NSError (NSErrorKtKotlinException) @property (readonly) id _Nullable kotlinException; -@end; +@end __attribute__((swift_name("KotlinNumber"))) @interface KtNumber : NSNumber @@ -52,73 +52,73 @@ __attribute__((swift_name("KotlinNumber"))) + (instancetype)numberWithBool:(BOOL)value __attribute__((unavailable)); + (instancetype)numberWithInteger:(NSInteger)value __attribute__((unavailable)); + (instancetype)numberWithUnsignedInteger:(NSUInteger)value __attribute__((unavailable)); -@end; +@end __attribute__((swift_name("KotlinByte"))) @interface KtByte : KtNumber - (instancetype)initWithChar:(char)value; + (instancetype)numberWithChar:(char)value; -@end; +@end __attribute__((swift_name("KotlinUByte"))) @interface KtUByte : KtNumber - (instancetype)initWithUnsignedChar:(unsigned char)value; + (instancetype)numberWithUnsignedChar:(unsigned char)value; -@end; +@end __attribute__((swift_name("KotlinShort"))) @interface KtShort : KtNumber - (instancetype)initWithShort:(short)value; + (instancetype)numberWithShort:(short)value; -@end; +@end __attribute__((swift_name("KotlinUShort"))) @interface KtUShort : KtNumber - (instancetype)initWithUnsignedShort:(unsigned short)value; + (instancetype)numberWithUnsignedShort:(unsigned short)value; -@end; +@end __attribute__((swift_name("KotlinInt"))) @interface KtInt : KtNumber - (instancetype)initWithInt:(int)value; + (instancetype)numberWithInt:(int)value; -@end; +@end __attribute__((swift_name("KotlinUInt"))) @interface KtUInt : KtNumber - (instancetype)initWithUnsignedInt:(unsigned int)value; + (instancetype)numberWithUnsignedInt:(unsigned int)value; -@end; +@end __attribute__((swift_name("KotlinLong"))) @interface KtLong : KtNumber - (instancetype)initWithLongLong:(long long)value; + (instancetype)numberWithLongLong:(long long)value; -@end; +@end __attribute__((swift_name("KotlinULong"))) @interface KtULong : KtNumber - (instancetype)initWithUnsignedLongLong:(unsigned long long)value; + (instancetype)numberWithUnsignedLongLong:(unsigned long long)value; -@end; +@end __attribute__((swift_name("KotlinFloat"))) @interface KtFloat : KtNumber - (instancetype)initWithFloat:(float)value; + (instancetype)numberWithFloat:(float)value; -@end; +@end __attribute__((swift_name("KotlinDouble"))) @interface KtDouble : KtNumber - (instancetype)initWithDouble:(double)value; + (instancetype)numberWithDouble:(double)value; -@end; +@end __attribute__((swift_name("KotlinBoolean"))) @interface KtBoolean : KtNumber - (instancetype)initWithBool:(BOOL)value; + (instancetype)numberWithBool:(BOOL)value; -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("CoroutineException"))) @@ -128,7 +128,7 @@ __attribute__((swift_name("CoroutineException"))) - (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithCause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithMessage:(NSString * _Nullable)message cause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ContinuationHolder"))) @@ -137,7 +137,7 @@ __attribute__((swift_name("ContinuationHolder"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (void)resumeValue:(id _Nullable)value __attribute__((swift_name("resume(value:)"))); - (void)resumeWithExceptionException:(KtKotlinThrowable *)exception __attribute__((swift_name("resumeWithException(exception:)"))); -@end; +@end __attribute__((swift_name("SuspendFun"))) @protocol KtSuspendFun @@ -148,7 +148,7 @@ __attribute__((swift_name("SuspendFun"))) Other uncaught Kotlin exceptions are fatal. */ - (void)suspendFunDoYield:(BOOL)doYield doThrow:(BOOL)doThrow completionHandler:(void (^)(KtInt * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("suspendFun(doYield:doThrow:completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ResultHolder"))) @@ -158,7 +158,7 @@ __attribute__((swift_name("ResultHolder"))) @property int32_t completed __attribute__((swift_name("completed"))); @property id _Nullable result __attribute__((swift_name("result"))); @property KtKotlinThrowable * _Nullable exception __attribute__((swift_name("exception"))); -@end; +@end __attribute__((swift_name("SuspendBridge"))) @protocol KtSuspendBridge @@ -213,7 +213,7 @@ __attribute__((swift_name("SuspendBridge"))) @note This method converts all Kotlin exceptions to errors. */ - (void)nothingAsUnitValue:(id _Nullable)value completionHandler:(void (^)(NSError * _Nullable))completionHandler __attribute__((swift_name("nothingAsUnit(value:completionHandler:)"))); -@end; +@end __attribute__((swift_name("AbstractSuspendBridge"))) @interface KtAbstractSuspendBridge : KtBase @@ -258,13 +258,13 @@ __attribute__((swift_name("AbstractSuspendBridge"))) @note This method converts all Kotlin exceptions to errors. */ - (void)nothingAsUnitValue:(KtInt *)value completionHandler:(void (^)(NSError * _Nullable))completionHandler __attribute__((swift_name("nothingAsUnit(value:completionHandler:)"))); -@end; +@end __attribute__((swift_name("ThrowCancellationException"))) @interface KtThrowCancellationException : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ThrowCancellationExceptionImpl"))) @@ -277,7 +277,7 @@ __attribute__((swift_name("ThrowCancellationExceptionImpl"))) Other uncaught Kotlin exceptions are fatal. */ - (void)throwCancellationExceptionWithCompletionHandler:(void (^)(NSError * _Nullable))completionHandler __attribute__((swift_name("throwCancellationException(completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("suspendFunctionChild0"))) @@ -290,7 +290,7 @@ __attribute__((swift_name("suspendFunctionChild0"))) Other uncaught Kotlin exceptions are fatal. */ - (void)invokeWithCompletionHandler:(void (^)(NSString * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("invoke(completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("suspendFunctionChild1"))) @@ -303,7 +303,7 @@ __attribute__((swift_name("suspendFunctionChild1"))) Other uncaught Kotlin exceptions are fatal. */ - (void)invokeP1:(NSString *)s completionHandler:(void (^)(NSString * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("invoke(p1:completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("CoroutinesKt"))) @@ -383,7 +383,7 @@ __attribute__((swift_name("CoroutinesKt"))) + (id)getKSuspendCallableReference0 __attribute__((swift_name("getKSuspendCallableReference0()"))); + (id)getKSuspendCallableReference1 __attribute__((swift_name("getKSuspendCallableReference1()"))); + (void)gc __attribute__((swift_name("gc()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DataClassWithComponentMethods"))) @@ -397,7 +397,7 @@ __attribute__((swift_name("DataClassWithComponentMethods"))) - (KtDataClassWithComponentMethods *)doCopyX:(int32_t)x y:(int32_t)y __attribute__((swift_name("doCopy(x:y:)"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); @property (readonly) int32_t y __attribute__((swift_name("y"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("RegularClassWithComponentMethods"))) @@ -406,27 +406,27 @@ __attribute__((swift_name("RegularClassWithComponentMethods"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)component1 __attribute__((swift_name("component1()"))); - (int32_t)component3 __attribute__((swift_name("component3()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DataClassComponentMethodsKt"))) @interface KtDataClassComponentMethodsKt : KtBase + (int32_t)component1 __attribute__((swift_name("component1()"))); + (int32_t)component4 __attribute__((swift_name("component4()"))); -@end; +@end __attribute__((swift_name("DeallocRetainBase"))) @interface KtDeallocRetainBase : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DeallocRetainKt"))) @interface KtDeallocRetainKt : KtBase + (void)garbageCollect __attribute__((swift_name("garbageCollect()"))); + (KtKotlinWeakReference *)createWeakReferenceValue:(id)value __attribute__((swift_name("createWeakReference(value:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("EnumLeftRightUpDown"))) @@ -439,7 +439,7 @@ __attribute__((swift_name("EnumLeftRightUpDown"))) @property (class, readonly) KtEnumLeftRightUpDown *up __attribute__((swift_name("up"))); @property (class, readonly) KtEnumLeftRightUpDown *down __attribute__((swift_name("down"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("EnumOneTwoThreeValues"))) @@ -452,7 +452,7 @@ __attribute__((swift_name("EnumOneTwoThreeValues"))) @property (class, readonly) KtEnumOneTwoThreeValues *three __attribute__((swift_name("three"))); @property (class, readonly) KtEnumOneTwoThreeValues *values __attribute__((swift_name("values"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("EnumValuesValues_"))) @@ -463,7 +463,7 @@ __attribute__((swift_name("EnumValuesValues_"))) @property (class, readonly) KtEnumValuesValues_ *values __attribute__((swift_name("values"))); @property (class, readonly) KtEnumValuesValues_ *values __attribute__((swift_name("values"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("EmptyEnum"))) @@ -472,27 +472,27 @@ __attribute__((swift_name("EmptyEnum"))) + (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); - (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((swift_name("FunInterface"))) @protocol KtFunInterface @required - (int32_t)run __attribute__((swift_name("run()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("FunInterfacesKt"))) @interface KtFunInterfacesKt : KtBase + (id)getObject __attribute__((swift_name("getObject()"))); + (id)getLambda __attribute__((swift_name("getLambda()"))); -@end; +@end __attribute__((swift_name("FHolder"))) @interface KtFHolder : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) id _Nullable value __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("F2Holder"))) @@ -501,7 +501,7 @@ __attribute__((swift_name("F2Holder"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); + (instancetype)new __attribute__((unavailable)); @property (readonly) id _Nullable (^value)(id _Nullable, id _Nullable) __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("F32Holder"))) @@ -510,7 +510,7 @@ __attribute__((swift_name("F32Holder"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); + (instancetype)new __attribute__((unavailable)); @property (readonly) id _Nullable (^value)(id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable) __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("F33Holder"))) @@ -519,7 +519,7 @@ __attribute__((swift_name("F33Holder"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); + (instancetype)new __attribute__((unavailable)); @property (readonly) id value __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("FunctionalTypesKt"))) @@ -540,80 +540,80 @@ __attribute__((swift_name("FunctionalTypesKt"))) + (id _Nullable (^)(id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable))getStaticTypeRef33 __attribute__((swift_name("getStaticTypeRef33()"))); + (KtF33Holder *)getDynTypeLambda33 __attribute__((swift_name("getDynTypeLambda33()"))); + (id _Nullable (^)(id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable, id _Nullable))getStaticTypeLambda33 __attribute__((swift_name("getStaticTypeLambda33()"))); -@end; +@end __attribute__((swift_name("GH4002ArgumentBase"))) @interface KtGH4002ArgumentBase : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH4002Argument"))) @interface KtGH4002Argument : KtGH4002ArgumentBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestIncompatiblePropertyTypeWarning"))) @interface KtTestIncompatiblePropertyTypeWarning : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestIncompatiblePropertyTypeWarning.Generic"))) @interface KtTestIncompatiblePropertyTypeWarningGeneric : KtBase - (instancetype)initWithValue:(id _Nullable)value __attribute__((swift_name("init(value:)"))) __attribute__((objc_designated_initializer)); @property (readonly) id _Nullable value __attribute__((swift_name("value"))); -@end; +@end __attribute__((swift_name("TestIncompatiblePropertyTypeWarningInterfaceWithGenericProperty"))) @protocol KtTestIncompatiblePropertyTypeWarningInterfaceWithGenericProperty @required @property (readonly) KtTestIncompatiblePropertyTypeWarningGeneric *p __attribute__((swift_name("p"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestIncompatiblePropertyTypeWarning.ClassOverridingInterfaceWithGenericProperty"))) @interface KtTestIncompatiblePropertyTypeWarningClassOverridingInterfaceWithGenericProperty : KtBase - (instancetype)initWithP:(KtTestIncompatiblePropertyTypeWarningGeneric *)p __attribute__((swift_name("init(p:)"))) __attribute__((objc_designated_initializer)); @property (readonly) KtTestIncompatiblePropertyTypeWarningGeneric *p __attribute__((swift_name("p"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestGH3992"))) @interface KtTestGH3992 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("TestGH3992.C"))) @interface KtTestGH3992C : KtBase - (instancetype)initWithA:(KtTestGH3992A *)a __attribute__((swift_name("init(a:)"))) __attribute__((objc_designated_initializer)); @property (readonly) KtTestGH3992A *a __attribute__((swift_name("a"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestGH3992.D"))) @interface KtTestGH3992D : KtTestGH3992C - (instancetype)initWithA:(KtTestGH3992B *)a __attribute__((swift_name("init(a:)"))) __attribute__((objc_designated_initializer)); @property (readonly) KtTestGH3992B *a __attribute__((swift_name("a"))); -@end; +@end __attribute__((swift_name("TestGH3992.A"))) @interface KtTestGH3992A : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestGH3992.B"))) @interface KtTestGH3992B : KtTestGH3992A - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KDocExport"))) @@ -624,14 +624,14 @@ __attribute__((swift_name("KDocExport"))) @property (readonly) NSString *xyzzy __attribute__((swift_name("xyzzy"))); @property (readonly) NSString *foo __attribute__((swift_name("foo"))); @property int32_t yxxyz __attribute__((swift_name("yxxyz"))); -@end; +@end __attribute__((swift_name("SomeClassWithProperty"))) @interface KtSomeClassWithProperty : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) KtSomeClassWithProperty *heavyFormattedKDocFoo __attribute__((swift_name("heavyFormattedKDocFoo"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KdocExportKt"))) @@ -642,14 +642,14 @@ __attribute__((swift_name("KdocExportKt"))) Other uncaught Kotlin exceptions are fatal. */ + (NSString * _Nullable)whateverA:(NSString *)a error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("whatever(a:)"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideI1"))) @protocol KtKotlinPrivateOverrideI1 @required - (int32_t)i123AbstractMethod __attribute__((swift_name("i123AbstractMethod()"))); - (int32_t)i1OpenMethod __attribute__((swift_name("i1OpenMethod()"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideI2"))) @protocol KtKotlinPrivateOverrideI2 @@ -657,7 +657,7 @@ __attribute__((swift_name("KotlinPrivateOverrideI2"))) - (int32_t)i123AbstractMethod __attribute__((swift_name("i123AbstractMethod()"))); - (int32_t)i234AbstractMethod __attribute__((swift_name("i234AbstractMethod()"))); - (int32_t)i2AbstractMethod __attribute__((swift_name("i2AbstractMethod()"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideA1"))) @interface KtKotlinPrivateOverrideA1 : KtBase @@ -665,7 +665,7 @@ __attribute__((swift_name("KotlinPrivateOverrideA1"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)a1AbstractMethod __attribute__((swift_name("a1AbstractMethod()"))); - (int32_t)a1OpenMethod __attribute__((swift_name("a1OpenMethod()"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideI3"))) @protocol KtKotlinPrivateOverrideI3 @@ -673,34 +673,34 @@ __attribute__((swift_name("KotlinPrivateOverrideI3"))) - (int32_t)i123AbstractMethod __attribute__((swift_name("i123AbstractMethod()"))); - (int32_t)i234AbstractMethod __attribute__((swift_name("i234AbstractMethod()"))); - (int32_t)i3AbstractMethod __attribute__((swift_name("i3AbstractMethod()"))); -@end; +@end __attribute__((swift_name("KotlinPrivateOverrideI4"))) @protocol KtKotlinPrivateOverrideI4 @required - (int32_t)i234AbstractMethod __attribute__((swift_name("i234AbstractMethod()"))); - (int32_t)i4AbstractMethod __attribute__((swift_name("i4AbstractMethod()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KotlinPrivateOverrideKt"))) @interface KtKotlinPrivateOverrideKt : KtBase + (id)createP1 __attribute__((swift_name("createP1()"))); + (id)createP12 __attribute__((swift_name("createP12()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt35940Kt"))) @interface KtKt35940Kt : KtBase + (NSString *)testKt35940 __attribute__((swift_name("testKt35940()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641"))) @interface KtKT38641 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641.IntType"))) @@ -708,7 +708,7 @@ __attribute__((swift_name("KT38641.IntType"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (getter=description, setter=setDescription:) int32_t description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641.Val"))) @@ -716,7 +716,7 @@ __attribute__((swift_name("KT38641.Val"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly, getter=description) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641.Var"))) @@ -724,7 +724,7 @@ __attribute__((swift_name("KT38641.Var"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (getter=description, setter=setDescription:) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT38641.TwoProperties"))) @@ -733,20 +733,20 @@ __attribute__((swift_name("KT38641.TwoProperties"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly, getter=description) NSString *description_ __attribute__((swift_name("description_"))); @property (readonly) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((swift_name("KT38641.OverrideVal"))) @interface KtKT38641OverrideVal : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly, getter=description) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((swift_name("KT38641OverrideVar"))) @protocol KtKT38641OverrideVar @required @property (getter=description, setter=setDescription:) NSString *description_ __attribute__((swift_name("description_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt38641Kt"))) @@ -754,46 +754,46 @@ __attribute__((swift_name("Kt38641Kt"))) + (NSString *)getOverrideValDescriptionImpl:(KtKT38641OverrideVal *)impl __attribute__((swift_name("getOverrideValDescription(impl:)"))); + (NSString *)getOverrideVarDescriptionImpl:(id)impl __attribute__((swift_name("getOverrideVarDescription(impl:)"))); + (void)setOverrideVarDescriptionImpl:(id)impl newValue:(NSString *)newValue __attribute__((swift_name("setOverrideVarDescription(impl:newValue:)"))); -@end; +@end __attribute__((swift_name("JsonConfiguration"))) @interface KtJsonConfiguration : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable("This class is deprecated for removal during serialization 1.0 API stabilization.\nFor configuring Json instances, the corresponding builder function can be used instead, e.g. instead of'Json(JsonConfiguration.Stable.copy(isLenient = true))' 'Json { isLenient = true }' should be used.\nInstead of storing JsonConfiguration instances of the code, Json instances can be used directly:'Json(MyJsonConfiguration.copy(prettyPrint = true))' can be replaced with 'Json(from = MyApplicationJson) { prettyPrint = true }'"))); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("MoreTrickyChars"))) @interface KtMoreTrickyChars : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)) __attribute__((deprecated("'\"\\@$(){}\r\n"))); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt39206Kt"))) @interface KtKt39206Kt : KtBase + (int32_t)myFunc __attribute__((swift_name("myFunc()"))) __attribute__((deprecated("Don't call this\nPlease"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Ckt41907"))) @interface KtCkt41907 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("Ikt41907"))) @protocol KtIkt41907 @required - (void)fooC:(KtCkt41907 *)c __attribute__((swift_name("foo(c:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt41907Kt"))) @interface KtKt41907Kt : KtBase + (void)escapeCC:(KtCkt41907 *)c __attribute__((swift_name("escapeC(c:)"))); + (void)testKt41907O:(id)o __attribute__((swift_name("testKt41907(o:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43599"))) @@ -801,11 +801,11 @@ __attribute__((swift_name("KT43599"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) NSString *memberProperty __attribute__((swift_name("memberProperty"))); -@end; +@end @interface KtKT43599 (Kt43599Kt) @property (readonly) NSString *extensionProperty __attribute__((swift_name("extensionProperty"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt43599Kt"))) @@ -813,7 +813,7 @@ __attribute__((swift_name("Kt43599Kt"))) + (void)setTopLevelLateinitPropertyValue:(NSString *)value __attribute__((swift_name("setTopLevelLateinitProperty(value:)"))); @property (class, readonly) NSString *topLevelProperty __attribute__((swift_name("topLevelProperty"))); @property (class, readonly) NSString *topLevelLateinitProperty __attribute__((swift_name("topLevelLateinitProperty"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780TestObject"))) @@ -826,7 +826,7 @@ __attribute__((swift_name("KT43780TestObject"))) @property (readonly) int32_t y __attribute__((swift_name("y"))); @property (readonly) NSString *shared __attribute__((swift_name("shared"))); @property (readonly) NSString *Shared __attribute__((swift_name("Shared"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780TestClassWithCompanion"))) @@ -834,7 +834,7 @@ __attribute__((swift_name("KT43780TestClassWithCompanion"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (class, readonly, getter=companion) KtKT43780TestClassWithCompanionCompanion *companion __attribute__((swift_name("companion"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780TestClassWithCompanion.Companion"))) @@ -844,7 +844,7 @@ __attribute__((swift_name("KT43780TestClassWithCompanion.Companion"))) + (instancetype)companion __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtKT43780TestClassWithCompanionCompanion *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t z __attribute__((swift_name("z"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Shared"))) @@ -854,7 +854,7 @@ __attribute__((swift_name("Shared"))) + (instancetype)shared __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared_) KtShared *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Companion"))) @@ -863,7 +863,7 @@ __attribute__((swift_name("Companion"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (class, readonly, getter=companion) KtCompanionCompanion *companion __attribute__((swift_name("companion"))); @property (readonly) int32_t t __attribute__((swift_name("t"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Companion.Companion"))) @@ -873,7 +873,7 @@ __attribute__((swift_name("Companion.Companion"))) + (instancetype)companion __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtCompanionCompanion *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780Enum"))) @@ -884,7 +884,7 @@ __attribute__((swift_name("KT43780Enum"))) @property (class, readonly) KtKT43780Enum *otherEntry __attribute__((swift_name("otherEntry"))); @property (class, readonly) KtKT43780Enum *companion __attribute__((swift_name("companion"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT43780Enum.Companion"))) @@ -894,7 +894,7 @@ __attribute__((swift_name("KT43780Enum.Companion"))) + (instancetype)companion __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtKT43780EnumCompanion *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ClassWithInternalCompanion"))) @@ -902,7 +902,7 @@ __attribute__((swift_name("ClassWithInternalCompanion"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t y __attribute__((swift_name("y"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ClassWithPrivateCompanion"))) @@ -910,25 +910,25 @@ __attribute__((swift_name("ClassWithPrivateCompanion"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t y __attribute__((swift_name("y"))); -@end; +@end __attribute__((swift_name("Host"))) @protocol KtHost @required @property (readonly) NSString *test __attribute__((swift_name("test"))); -@end; +@end __attribute__((swift_name("AbstractHost"))) @interface KtAbstractHost : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt46431Kt"))) @interface KtKt46431Kt : KtBase + (id)createAbstractHost __attribute__((swift_name("createAbstractHost()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT49937"))) @@ -936,7 +936,7 @@ __attribute__((swift_name("KT49937"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)description __attribute__((swift_name("description()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("LibraryKt"))) @@ -944,7 +944,7 @@ __attribute__((swift_name("LibraryKt"))) + (NSString *)readDataFromLibraryClassInput:(KtA *)input __attribute__((swift_name("readDataFromLibraryClass(input:)"))); + (NSString *)readDataFromLibraryInterfaceInput:(id)input __attribute__((swift_name("readDataFromLibraryInterface(input:)"))); + (NSString *)readDataFromLibraryEnumInput:(KtE *)input __attribute__((swift_name("readDataFromLibraryEnum(input:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ArraysConstructor"))) @@ -952,7 +952,7 @@ __attribute__((swift_name("ArraysConstructor"))) - (instancetype)initWithInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("init(int1:int2:)"))) __attribute__((objc_designated_initializer)); - (void)setInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("set(int1:int2:)"))); - (NSString *)log __attribute__((swift_name("log()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ArraysDefault"))) @@ -960,7 +960,7 @@ __attribute__((swift_name("ArraysDefault"))) - (instancetype)initWithInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("init(int1:int2:)"))) __attribute__((objc_designated_initializer)); - (void)setInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("set(int1:int2:)"))); - (NSString *)log __attribute__((swift_name("log()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ArraysInitBlock"))) @@ -968,7 +968,7 @@ __attribute__((swift_name("ArraysInitBlock"))) - (instancetype)initWithInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("init(int1:int2:)"))) __attribute__((objc_designated_initializer)); - (void)setInt1:(int32_t)int1 int2:(int32_t)int2 __attribute__((swift_name("set(int1:int2:)"))); - (NSString *)log __attribute__((swift_name("log()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KotlinLivenessTracker"))) @@ -979,14 +979,14 @@ __attribute__((swift_name("KotlinLivenessTracker"))) - (BOOL)isEmpty __attribute__((swift_name("isEmpty()"))); - (BOOL)objectsAreDead __attribute__((swift_name("objectsAreDead()"))); @property (readonly) NSMutableArray *weakRefs __attribute__((swift_name("weakRefs"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KotlinObject"))) @interface KtKotlinObject : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("NoAutoreleaseSendHelper"))) @protocol KtNoAutoreleaseSendHelper @@ -1004,7 +1004,7 @@ __attribute__((swift_name("NoAutoreleaseSendHelper"))) Other uncaught Kotlin exceptions are fatal. */ - (void)sendCompletionWithCompletionHandler:(void (^)(id _Nullable_result, NSError * _Nullable))completionHandler __attribute__((swift_name("sendCompletion(completionHandler:)"))); -@end; +@end __attribute__((swift_name("NoAutoreleaseReceiveHelper"))) @protocol KtNoAutoreleaseReceiveHelper @@ -1015,7 +1015,7 @@ __attribute__((swift_name("NoAutoreleaseReceiveHelper"))) - (NSString *)receiveString __attribute__((swift_name("receiveString()"))); - (id)receiveNumber __attribute__((swift_name("receiveNumber()"))); - (KtKotlinObject *(^)(void))receiveBlock __attribute__((swift_name("receiveBlock()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseKotlinSendHelper"))) @@ -1035,7 +1035,7 @@ __attribute__((swift_name("NoAutoreleaseKotlinSendHelper"))) */ - (void)sendCompletionWithCompletionHandler:(void (^)(id _Nullable_result, NSError * _Nullable))completionHandler __attribute__((swift_name("sendCompletion(completionHandler:)"))); @property (readonly) KtKotlinLivenessTracker *kotlinLivenessTracker __attribute__((swift_name("kotlinLivenessTracker"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseKotlinReceiveHelper"))) @@ -1049,7 +1049,7 @@ __attribute__((swift_name("NoAutoreleaseKotlinReceiveHelper"))) - (KtKotlinObject *(^)(void))receiveBlock __attribute__((swift_name("receiveBlock()"))); @property id swiftObject __attribute__((swift_name("swiftObject"))); @property (readonly) KtKotlinLivenessTracker *kotlinLivenessTracker __attribute__((swift_name("kotlinLivenessTracker"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseSingleton"))) @@ -1059,7 +1059,7 @@ __attribute__((swift_name("NoAutoreleaseSingleton"))) + (instancetype)noAutoreleaseSingleton __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtNoAutoreleaseSingleton *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseEnum"))) @@ -1070,7 +1070,7 @@ __attribute__((swift_name("NoAutoreleaseEnum"))) @property (class, readonly) KtNoAutoreleaseEnum *entry __attribute__((swift_name("entry"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NoAutoreleaseKt"))) @@ -1094,37 +1094,37 @@ __attribute__((swift_name("NoAutoreleaseKt"))) + (void * _Nullable)objc_autoreleasePoolPush __attribute__((swift_name("objc_autoreleasePoolPush()"))); + (void)objc_autoreleasePoolPopHandle:(void * _Nullable)handle __attribute__((swift_name("objc_autoreleasePoolPop(handle:)"))); + (void)useIntArrayArray:(KtKotlinIntArray *)array __attribute__((swift_name("useIntArray(array:)"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods2"))) @protocol KtOverrideKotlinMethods2 @required - (int32_t)one __attribute__((swift_name("one()"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods3"))) @interface KtOverrideKotlinMethods3 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods4"))) @interface KtOverrideKotlinMethods4 : KtOverrideKotlinMethods3 - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)one __attribute__((swift_name("one()"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods5"))) @protocol KtOverrideKotlinMethods5 @required - (int32_t)one __attribute__((swift_name("one()"))); -@end; +@end __attribute__((swift_name("OverrideKotlinMethods6"))) @protocol KtOverrideKotlinMethods6 @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("OverrideKotlinMethodsKt"))) @@ -1164,7 +1164,7 @@ __attribute__((swift_name("OverrideKotlinMethodsKt"))) @note This method converts all Kotlin exceptions to errors. */ + (BOOL)test6Obj:(id)obj error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("test6(obj:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("OverrideMethodsOfAnyKt"))) @@ -1174,11 +1174,11 @@ __attribute__((swift_name("OverrideMethodsOfAnyKt"))) @note This method converts all Kotlin exceptions to errors. */ + (BOOL)testObj:(id)obj other:(id)other swift:(BOOL)swift error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("test(obj:other:swift:)"))); -@end; +@end __attribute__((swift_name("Person"))) @interface KtPerson : KtBase -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Person.User"))) @@ -1190,13 +1190,13 @@ __attribute__((swift_name("Person.User"))) - (int32_t)component1 __attribute__((swift_name("component1()"))) __attribute__((deprecated("use corresponding property instead"))); - (KtPersonUser *)doCopyId:(int32_t)id __attribute__((swift_name("doCopy(id:)"))); @property (readonly) int32_t id __attribute__((swift_name("id"))); -@end; +@end __attribute__((swift_name("Person.Worker"))) @interface KtPersonWorker : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Person.WorkerEmployee"))) @@ -1210,7 +1210,7 @@ __attribute__((swift_name("Person.WorkerEmployee"))) - (int32_t)component1 __attribute__((swift_name("component1()"))) __attribute__((deprecated("use corresponding property instead"))); - (KtPersonWorkerEmployee *)doCopyId:(int32_t)id __attribute__((swift_name("doCopy(id:)"))); @property (readonly) int32_t id __attribute__((swift_name("id"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Person.WorkerContractor"))) @@ -1224,7 +1224,7 @@ __attribute__((swift_name("Person.WorkerContractor"))) - (int32_t)component1 __attribute__((swift_name("component1()"))) __attribute__((deprecated("use corresponding property instead"))); - (KtPersonWorkerContractor *)doCopyId:(int32_t)id __attribute__((swift_name("doCopy(id:)"))); @property (readonly) int32_t id __attribute__((swift_name("id"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ThrowableAsError"))) @@ -1234,7 +1234,7 @@ __attribute__((swift_name("ThrowableAsError"))) - (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithCause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithMessage:(NSString * _Nullable)message cause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((swift_name("ThrowsThrowableAsError"))) @protocol KtThrowsThrowableAsError @@ -1244,7 +1244,7 @@ __attribute__((swift_name("ThrowsThrowableAsError"))) @note This method converts all Kotlin exceptions to errors. */ - (BOOL)throwErrorAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("throwError()"))); -@end; +@end __attribute__((swift_name("ThrowsThrowableAsErrorSuspend"))) @protocol KtThrowsThrowableAsErrorSuspend @@ -1255,14 +1255,14 @@ __attribute__((swift_name("ThrowsThrowableAsErrorSuspend"))) Other uncaught Kotlin exceptions are fatal. */ - (void)throwErrorWithCompletionHandler:(void (^)(NSError * _Nullable))completionHandler __attribute__((swift_name("throwError(completionHandler:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ThrowableAsErrorKt"))) @interface KtThrowableAsErrorKt : KtBase + (KtThrowableAsError * _Nullable)callAndCatchThrowableAsErrorThrowsThrowableAsError:(id)throwsThrowableAsError __attribute__((swift_name("callAndCatchThrowableAsError(throwsThrowableAsError:)"))); + (KtThrowableAsError * _Nullable)callAndCatchThrowableAsErrorSuspendThrowsThrowableAsErrorSuspend:(id)throwsThrowableAsErrorSuspend __attribute__((swift_name("callAndCatchThrowableAsErrorSuspend(throwsThrowableAsErrorSuspend:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ThrowsEmptyKt"))) @@ -1272,7 +1272,7 @@ __attribute__((swift_name("ThrowsEmptyKt"))) @warning All uncaught Kotlin exceptions are fatal. */ + (BOOL)throwsEmptyAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("throwsEmpty()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelManglingAKt"))) @@ -1281,14 +1281,14 @@ __attribute__((swift_name("TopLevelManglingAKt"))) + (int32_t)sameNumberValue:(int32_t)value __attribute__((swift_name("sameNumber(value:)"))); + (int64_t)sameNumberValue:(int64_t)value __attribute__((swift_name("sameNumber(value:)"))); @property (class, readonly) NSString *bar __attribute__((swift_name("bar"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelManglingBKt"))) @interface KtTopLevelManglingBKt : KtBase + (NSString *)foo __attribute__((swift_name("foo()"))); @property (class, readonly) NSString *bar __attribute__((swift_name("bar"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DelegateClass"))) @@ -1297,27 +1297,27 @@ __attribute__((swift_name("DelegateClass"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (KtKotlinArray *)getValueThisRef:(KtKotlinNothing * _Nullable)thisRef property:(id)property __attribute__((swift_name("getValue(thisRef:property:)"))); - (void)setValueThisRef:(KtKotlinNothing * _Nullable)thisRef property:(id)property value:(KtKotlinArray *)value __attribute__((swift_name("setValue(thisRef:property:value:)"))); -@end; +@end __attribute__((swift_name("I"))) @protocol KtI @required - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("DefaultInterfaceExt"))) @interface KtDefaultInterfaceExt : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("OpenClassI"))) @interface KtOpenClassI : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("FinalClassExtOpen"))) @@ -1325,7 +1325,7 @@ __attribute__((swift_name("FinalClassExtOpen"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((swift_name("MultiExtClass"))) @interface KtMultiExtClass : KtOpenClassI @@ -1333,7 +1333,7 @@ __attribute__((swift_name("MultiExtClass"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (id)piFun __attribute__((swift_name("piFun()"))); - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((swift_name("ConstrClass"))) @interface KtConstrClass : KtOpenClassI @@ -1343,7 +1343,7 @@ __attribute__((swift_name("ConstrClass"))) @property (readonly) int32_t i __attribute__((swift_name("i"))); @property (readonly) NSString *s __attribute__((swift_name("s"))); @property (readonly) id a __attribute__((swift_name("a"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ExtConstrClass"))) @@ -1352,7 +1352,7 @@ __attribute__((swift_name("ExtConstrClass"))) - (instancetype)initWithI:(int32_t)i s:(NSString *)s a:(id)a __attribute__((swift_name("init(i:s:a:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (NSString *)iFun __attribute__((swift_name("iFun()"))); @property (readonly) int32_t i __attribute__((swift_name("i"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Enumeration"))) @@ -1365,7 +1365,7 @@ __attribute__((swift_name("Enumeration"))) @property (class, readonly) KtEnumeration *temperature __attribute__((swift_name("temperature"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) int32_t enumValue __attribute__((swift_name("enumValue"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TripleVals"))) @@ -1381,7 +1381,7 @@ __attribute__((swift_name("TripleVals"))) @property (readonly) id _Nullable first __attribute__((swift_name("first"))); @property (readonly) id _Nullable second __attribute__((swift_name("second"))); @property (readonly) id _Nullable third __attribute__((swift_name("third"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TripleVars"))) @@ -1397,14 +1397,14 @@ __attribute__((swift_name("TripleVars"))) @property id _Nullable first __attribute__((swift_name("first"))); @property id _Nullable second __attribute__((swift_name("second"))); @property id _Nullable third __attribute__((swift_name("third"))); -@end; +@end __attribute__((swift_name("WithCompanionAndObject"))) @interface KtWithCompanionAndObject : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (class, readonly, getter=companion) KtWithCompanionAndObjectCompanion *companion __attribute__((swift_name("companion"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithCompanionAndObject.Companion"))) @@ -1415,7 +1415,7 @@ __attribute__((swift_name("WithCompanionAndObject.Companion"))) @property (class, readonly, getter=shared) KtWithCompanionAndObjectCompanion *shared __attribute__((swift_name("shared"))); @property (readonly) NSString *str __attribute__((swift_name("str"))); @property id _Nullable named __attribute__((swift_name("named"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithCompanionAndObject.Named"))) @@ -1427,7 +1427,7 @@ __attribute__((swift_name("WithCompanionAndObject.Named"))) + (instancetype)named __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtWithCompanionAndObjectNamed *shared __attribute__((swift_name("shared"))); - (NSString *)iFun __attribute__((swift_name("iFun()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("MyException"))) @@ -1437,7 +1437,7 @@ __attribute__((swift_name("MyException"))) - (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithMessage:(NSString * _Nullable)message cause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithCause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("MyError"))) @@ -1447,7 +1447,7 @@ __attribute__((swift_name("MyError"))) - (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithMessage:(NSString * _Nullable)message cause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithCause:(KtKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((swift_name("SwiftOverridableMethodsWithThrows"))) @protocol KtSwiftOverridableMethodsWithThrows @@ -1476,7 +1476,7 @@ __attribute__((swift_name("SwiftOverridableMethodsWithThrows"))) Other uncaught Kotlin exceptions are fatal. */ - (KtInt *(^ _Nullable)(void))blockAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("block()"))); -@end; +@end __attribute__((swift_name("MethodsWithThrows"))) @protocol KtMethodsWithThrows @@ -1529,7 +1529,7 @@ __attribute__((swift_name("MethodsWithThrows"))) Other uncaught Kotlin exceptions are fatal. */ - (double)doubleAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("double()"))) __attribute__((swift_error(nonnull_error))); -@end; +@end __attribute__((swift_name("MethodsWithThrowsUnitCaller"))) @protocol KtMethodsWithThrowsUnitCaller @@ -1540,7 +1540,7 @@ __attribute__((swift_name("MethodsWithThrowsUnitCaller"))) Other uncaught Kotlin exceptions are fatal. */ - (BOOL)callMethods:(id)methods error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("call(methods:)"))); -@end; +@end __attribute__((swift_name("Throwing"))) @interface KtThrowing : KtBase @@ -1622,7 +1622,7 @@ __attribute__((swift_name("Throwing"))) Other uncaught Kotlin exceptions are fatal. */ - (double)doubleAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("double()"))) __attribute__((swift_error(nonnull_error))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("NotThrowing"))) @@ -1705,7 +1705,7 @@ __attribute__((swift_name("NotThrowing"))) Other uncaught Kotlin exceptions are fatal. */ - (double)doubleAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("double()"))) __attribute__((swift_error(nonnull_error))); -@end; +@end __attribute__((swift_name("ThrowsWithBridgeBase"))) @protocol KtThrowsWithBridgeBase @@ -1716,7 +1716,7 @@ __attribute__((swift_name("ThrowsWithBridgeBase"))) Other uncaught Kotlin exceptions are fatal. */ - (id _Nullable)plusOneX:(int32_t)x error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("plusOne(x:)"))); -@end; +@end __attribute__((swift_name("ThrowsWithBridge"))) @interface KtThrowsWithBridge : KtBase @@ -1728,21 +1728,21 @@ __attribute__((swift_name("ThrowsWithBridge"))) Other uncaught Kotlin exceptions are fatal. */ - (KtInt * _Nullable)plusOneX:(int32_t)x error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("plusOne(x:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Deeply"))) @interface KtDeeply : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Deeply.Nested"))) @interface KtDeeplyNested : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Deeply.NestedType"))) @@ -1750,26 +1750,26 @@ __attribute__((swift_name("Deeply.NestedType"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t thirtyTwo __attribute__((swift_name("thirtyTwo"))); -@end; +@end __attribute__((swift_name("DeeplyNestedIType"))) @protocol KtDeeplyNestedIType @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithGenericDeeply"))) @interface KtWithGenericDeeply : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithGenericDeeply.Nested"))) @interface KtWithGenericDeeplyNested : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("WithGenericDeeply.NestedType"))) @@ -1777,14 +1777,14 @@ __attribute__((swift_name("WithGenericDeeply.NestedType"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t thirtyThree __attribute__((swift_name("thirtyThree"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TypeOuter"))) @interface KtTypeOuter : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TypeOuter.Type_"))) @@ -1792,7 +1792,7 @@ __attribute__((swift_name("TypeOuter.Type_"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t thirtyFour __attribute__((swift_name("thirtyFour"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("CKeywords"))) @@ -1808,55 +1808,55 @@ __attribute__((swift_name("CKeywords"))) @property (readonly, getter=float) float float_ __attribute__((swift_name("float_"))); @property (readonly, getter=enum) int32_t enum_ __attribute__((swift_name("enum_"))); @property (getter=goto, setter=setGoto:) BOOL goto_ __attribute__((swift_name("goto_"))); -@end; +@end __attribute__((swift_name("Base1"))) @protocol KtBase1 @required - (KtInt * _Nullable)sameValue:(KtInt * _Nullable)value __attribute__((swift_name("same(value:)"))); -@end; +@end __attribute__((swift_name("ExtendedBase1"))) @protocol KtExtendedBase1 @required -@end; +@end __attribute__((swift_name("Base2"))) @protocol KtBase2 @required - (KtInt * _Nullable)sameValue:(KtInt * _Nullable)value __attribute__((swift_name("same(value:)"))); -@end; +@end __attribute__((swift_name("Base23"))) @interface KtBase23 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (KtInt *)sameValue:(KtInt * _Nullable)value __attribute__((swift_name("same(value:)"))); -@end; +@end __attribute__((swift_name("Transform"))) @protocol KtTransform @required - (id _Nullable)mapValue:(id _Nullable)value __attribute__((swift_name("map(value:)"))); -@end; +@end __attribute__((swift_name("TransformWithDefault"))) @protocol KtTransformWithDefault @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TransformInheritingDefault"))) @interface KtTransformInheritingDefault : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("TransformIntString"))) @protocol KtTransformIntString @required - (NSString *)mapIntValue:(int32_t)intValue __attribute__((swift_name("map(intValue:)"))); -@end; +@end __attribute__((swift_name("TransformIntToString"))) @interface KtTransformIntToString : KtBase @@ -1864,7 +1864,7 @@ __attribute__((swift_name("TransformIntToString"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)mapValue:(KtInt *)intValue __attribute__((swift_name("map(value:)"))); - (NSString *)mapIntValue:(int32_t)intValue __attribute__((swift_name("map(intValue:)"))); -@end; +@end __attribute__((swift_name("TransformIntToDecimalString"))) @interface KtTransformIntToDecimalString : KtTransformIntToString @@ -1872,28 +1872,28 @@ __attribute__((swift_name("TransformIntToDecimalString"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSString *)mapValue:(KtInt *)intValue __attribute__((swift_name("map(value:)"))); - (NSString *)mapIntValue:(int32_t)intValue __attribute__((swift_name("map(intValue:)"))); -@end; +@end __attribute__((swift_name("TransformIntToLong"))) @interface KtTransformIntToLong : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (KtLong *)mapValue:(KtInt *)value __attribute__((swift_name("map(value:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2931"))) @interface KtGH2931 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2931.Data"))) @interface KtGH2931Data : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2931.Holder"))) @@ -1901,7 +1901,7 @@ __attribute__((swift_name("GH2931.Holder"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) KtGH2931Data *data __attribute__((swift_name("data"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2945"))) @@ -1909,7 +1909,7 @@ __attribute__((swift_name("GH2945"))) - (instancetype)initWithErrno:(int32_t)errno __attribute__((swift_name("init(errno:)"))) __attribute__((objc_designated_initializer)); - (int32_t)testErrnoInSelectorP:(int32_t)p errno:(int32_t)errno __attribute__((swift_name("testErrnoInSelector(p:errno:)"))); @property int32_t errno __attribute__((swift_name("errno"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2830"))) @@ -1917,12 +1917,12 @@ __attribute__((swift_name("GH2830"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (id)getI __attribute__((swift_name("getI()"))); -@end; +@end __attribute__((swift_name("GH2830I"))) @protocol KtGH2830I @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH2959"))) @@ -1930,20 +1930,20 @@ __attribute__((swift_name("GH2959"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (NSArray> *)getIId:(int32_t)id __attribute__((swift_name("getI(id:)"))); -@end; +@end __attribute__((swift_name("GH2959I"))) @protocol KtGH2959I @required @property (readonly) int32_t id __attribute__((swift_name("id"))); -@end; +@end __attribute__((swift_name("IntBlocks"))) @protocol KtIntBlocks @required - (id _Nullable)getPlusOneBlock __attribute__((swift_name("getPlusOneBlock()"))); - (int32_t)callBlockArgument:(int32_t)argument block:(id _Nullable)block __attribute__((swift_name("callBlock(argument:block:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("IntBlocksImpl"))) @@ -1954,14 +1954,14 @@ __attribute__((swift_name("IntBlocksImpl"))) @property (class, readonly, getter=shared) KtIntBlocksImpl *shared __attribute__((swift_name("shared"))); - (KtInt *(^)(KtInt *))getPlusOneBlock __attribute__((swift_name("getPlusOneBlock()"))); - (int32_t)callBlockArgument:(int32_t)argument block:(KtInt *(^)(KtInt *))block __attribute__((swift_name("callBlock(argument:block:)"))); -@end; +@end __attribute__((swift_name("UnitBlockCoercion"))) @protocol KtUnitBlockCoercion @required - (id)coerceBlock:(void (^)(void))block __attribute__((swift_name("coerce(block:)"))); - (void (^)(void))uncoerceBlock:(id)block __attribute__((swift_name("uncoerce(block:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("UnitBlockCoercionImpl"))) @@ -1972,11 +1972,11 @@ __attribute__((swift_name("UnitBlockCoercionImpl"))) @property (class, readonly, getter=shared) KtUnitBlockCoercionImpl *shared __attribute__((swift_name("shared"))); - (KtKotlinUnit *(^)(void))coerceBlock:(void (^)(void))block __attribute__((swift_name("coerce(block:)"))); - (void (^)(void))uncoerceBlock:(KtKotlinUnit *(^)(void))block __attribute__((swift_name("uncoerce(block:)"))); -@end; +@end __attribute__((swift_name("MyAbstractList"))) @interface KtMyAbstractList : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestKClass"))) @@ -1987,54 +1987,54 @@ __attribute__((swift_name("TestKClass"))) - (id _Nullable)getKotlinClassProtocol:(Protocol *)protocol __attribute__((swift_name("getKotlinClass(protocol:)"))); - (BOOL)isTestKClassKClass:(id)kClass __attribute__((swift_name("isTestKClass(kClass:)"))); - (BOOL)isIKClass:(id)kClass __attribute__((swift_name("isI(kClass:)"))); -@end; +@end __attribute__((swift_name("TestKClassI"))) @protocol KtTestKClassI @required -@end; +@end __attribute__((swift_name("ForwardI2"))) @protocol KtForwardI2 @required -@end; +@end __attribute__((swift_name("ForwardI1"))) @protocol KtForwardI1 @required - (id)getForwardI2 __attribute__((swift_name("getForwardI2()"))); -@end; +@end __attribute__((swift_name("ForwardC2"))) @interface KtForwardC2 : KtForwardC1 - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("ForwardC1"))) @interface KtForwardC1 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (KtForwardC2 *)getForwardC2 __attribute__((swift_name("getForwardC2()"))); -@end; +@end __attribute__((swift_name("TestSR10177Workaround"))) @protocol KtTestSR10177Workaround @required -@end; +@end __attribute__((swift_name("TestClashes1"))) @protocol KtTestClashes1 @required @property (readonly) int32_t clashingProperty __attribute__((swift_name("clashingProperty"))); -@end; +@end __attribute__((swift_name("TestClashes2"))) @protocol KtTestClashes2 @required @property (readonly) id clashingProperty __attribute__((swift_name("clashingProperty"))); @property (readonly) id clashingProperty_ __attribute__((swift_name("clashingProperty_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestClashesImpl"))) @@ -2043,7 +2043,7 @@ __attribute__((swift_name("TestClashesImpl"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property (readonly) int32_t clashingProperty __attribute__((swift_name("clashingProperty"))); @property (readonly) KtInt *clashingProperty_ __attribute__((swift_name("clashingProperty_"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestInvalidIdentifiers"))) @@ -2054,7 +2054,7 @@ __attribute__((swift_name("TestInvalidIdentifiers"))) - (int32_t)aSdSdS1:(int32_t)S1 _2:(int32_t)_2 _3:(int32_t)_3 __attribute__((swift_name("aSdSd(S1:_2:_3:)"))); @property (readonly) unichar __ __attribute__((swift_name("__"))); @property (readonly) unichar __ __attribute__((swift_name("__"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestInvalidIdentifiers.E"))) @@ -2068,7 +2068,7 @@ __attribute__((swift_name("TestInvalidIdentifiers.E"))) @property (class, readonly) KtTestInvalidIdentifiersE *__ __attribute__((swift_name("__"))); + (KtKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) int32_t value __attribute__((swift_name("value"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestInvalidIdentifiers.CompanionS"))) @@ -2078,7 +2078,7 @@ __attribute__((swift_name("TestInvalidIdentifiers.CompanionS"))) + (instancetype)companionS __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtTestInvalidIdentifiersCompanionS *shared __attribute__((swift_name("shared"))); @property (readonly) int32_t _42 __attribute__((swift_name("_42"))); -@end; +@end __attribute__((swift_name("TestDeprecation"))) @interface KtTestDeprecation : KtBase @@ -2122,67 +2122,67 @@ __attribute__((swift_name("TestDeprecation"))) @property id _Nullable normalVar __attribute__((swift_name("normalVar"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))); -@end; +@end __attribute__((swift_name("TestDeprecation.OpenHidden"))) @interface KtTestDeprecationOpenHidden : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingHidden"))) @interface KtTestDeprecationExtendingHidden : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingHiddenNested"))) @interface KtTestDeprecationExtendingHiddenNested : NSObject -@end; +@end __attribute__((swift_name("TestDeprecationHiddenInterface"))) @protocol KtTestDeprecationHiddenInterface @required -@end; +@end __attribute__((swift_name("TestDeprecation.ImplementingHidden"))) @interface KtTestDeprecationImplementingHidden : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)effectivelyHidden __attribute__((swift_name("effectivelyHidden()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.Hidden"))) @interface KtTestDeprecationHidden : NSObject -@end; +@end __attribute__((swift_name("TestDeprecation.HiddenNested"))) @interface KtTestDeprecationHiddenNested : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenNestedNested"))) @interface KtTestDeprecationHiddenNestedNested : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenNestedInner"))) @interface KtTestDeprecationHiddenNestedInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenInner"))) @interface KtTestDeprecationHiddenInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenInnerInner"))) @interface KtTestDeprecationHiddenInnerInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingNestedInHidden"))) @interface KtTestDeprecationExtendingNestedInHidden : NSObject -@end; +@end __attribute__((swift_name("TestDeprecation.OpenError"))) @interface KtTestDeprecationOpenError : KtTestDeprecation @@ -2191,26 +2191,26 @@ __attribute__((swift_name("TestDeprecation.OpenError"))) - (instancetype)initWithError:(int16_t)error __attribute__((swift_name("init(error:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithWarning:(int32_t)warning __attribute__((swift_name("init(warning:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithNormal:(int64_t)normal __attribute__((swift_name("init(normal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingError"))) @interface KtTestDeprecationExtendingError : KtTestDeprecationOpenError - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("TestDeprecationErrorInterface"))) @protocol KtTestDeprecationErrorInterface @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ImplementingError"))) @interface KtTestDeprecationImplementingError : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.Error"))) @@ -2220,7 +2220,7 @@ __attribute__((swift_name("TestDeprecation.Error"))) - (instancetype)initWithError:(int16_t)error __attribute__((swift_name("init(error:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithWarning:(int32_t)warning __attribute__((swift_name("init(warning:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithNormal:(int64_t)normal __attribute__((swift_name("init(normal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((swift_name("TestDeprecation.OpenWarning"))) @interface KtTestDeprecationOpenWarning : KtTestDeprecation @@ -2229,26 +2229,26 @@ __attribute__((swift_name("TestDeprecation.OpenWarning"))) - (instancetype)initWithError:(int16_t)error __attribute__((swift_name("init(error:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithWarning:(int32_t)warning __attribute__((swift_name("init(warning:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithNormal:(int64_t)normal __attribute__((swift_name("init(normal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ExtendingWarning"))) @interface KtTestDeprecationExtendingWarning : KtTestDeprecationOpenWarning - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("TestDeprecationWarningInterface"))) @protocol KtTestDeprecationWarningInterface @required -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ImplementingWarning"))) @interface KtTestDeprecationImplementingWarning : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.Warning"))) @@ -2258,7 +2258,7 @@ __attribute__((swift_name("TestDeprecation.Warning"))) - (instancetype)initWithError:(int16_t)error __attribute__((swift_name("init(error:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithWarning:(int32_t)warning __attribute__((swift_name("init(warning:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); - (instancetype)initWithNormal:(int64_t)normal __attribute__((swift_name("init(normal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.HiddenOverride"))) @@ -2277,7 +2277,7 @@ __attribute__((swift_name("TestDeprecation.HiddenOverride"))) @property id _Nullable openWarningVar __attribute__((swift_name("openWarningVar"))) __attribute__((unavailable("hidden"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))) __attribute__((unavailable("hidden"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))) __attribute__((unavailable("hidden"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.ErrorOverride"))) @@ -2300,7 +2300,7 @@ __attribute__((swift_name("TestDeprecation.ErrorOverride"))) @property id _Nullable openWarningVar __attribute__((swift_name("openWarningVar"))) __attribute__((unavailable("error"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))) __attribute__((unavailable("error"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))) __attribute__((unavailable("error"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.WarningOverride"))) @@ -2323,7 +2323,7 @@ __attribute__((swift_name("TestDeprecation.WarningOverride"))) @property id _Nullable openWarningVar __attribute__((swift_name("openWarningVar"))) __attribute__((deprecated("warning"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))) __attribute__((deprecated("warning"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))) __attribute__((deprecated("warning"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestDeprecation.NormalOverride"))) @@ -2343,37 +2343,37 @@ __attribute__((swift_name("TestDeprecation.NormalOverride"))) @property id _Nullable openWarningVar __attribute__((swift_name("openWarningVar"))) __attribute__((deprecated("Overrides deprecated member in 'conversions.TestDeprecation'. warning"))); @property (readonly) id _Nullable openNormalVal __attribute__((swift_name("openNormalVal"))); @property id _Nullable openNormalVar __attribute__((swift_name("openNormalVar"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden"))) @interface KtTopLevelHidden : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.Nested"))) @interface KtTopLevelHiddenNested : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.NestedNested"))) @interface KtTopLevelHiddenNestedNested : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.NestedInner"))) @interface KtTopLevelHiddenNestedInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.Inner"))) @interface KtTopLevelHiddenInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TopLevelHidden.InnerInner"))) @interface KtTopLevelHiddenInnerInner : NSObject -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestWeakRefs"))) @@ -2382,7 +2382,7 @@ __attribute__((swift_name("TestWeakRefs"))) - (id)getObj __attribute__((swift_name("getObj()"))); - (void)clearObj __attribute__((swift_name("clearObj()"))); - (NSArray *)createCycle __attribute__((swift_name("createCycle()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("SharedRefs"))) @@ -2396,7 +2396,7 @@ __attribute__((swift_name("SharedRefs"))) - (void (^)(void))createFrozenLambda __attribute__((swift_name("createFrozenLambda()"))); - (NSMutableArray *)createFrozenCollection __attribute__((swift_name("createFrozenCollection()"))); - (BOOL)hasAliveObjects __attribute__((swift_name("hasAliveObjects()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("SharedRefs.MutableData"))) @@ -2405,44 +2405,44 @@ __attribute__((swift_name("SharedRefs.MutableData"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (void)update __attribute__((swift_name("update()"))); @property int32_t x __attribute__((swift_name("x"))); -@end; +@end __attribute__((swift_name("TestRememberNewObject"))) @protocol KtTestRememberNewObject @required - (id)getObject __attribute__((swift_name("getObject()"))); - (void)waitForCleanup __attribute__((swift_name("waitForCleanup()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("KT49497Model"))) @interface KtKT49497Model : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("ClassForTypeCheck"))) @interface KtClassForTypeCheck : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("InterfaceForTypeCheck"))) @protocol KtInterfaceForTypeCheck @required -@end; +@end __attribute__((swift_name("IAbstractInterface"))) @protocol KtIAbstractInterface @required - (int32_t)foo __attribute__((swift_name("foo()"))); -@end; +@end __attribute__((swift_name("IAbstractInterface2"))) @protocol KtIAbstractInterface2 @required - (int32_t)foo __attribute__((swift_name("foo()"))); -@end; +@end __attribute__((swift_name("AbstractInterfaceBase"))) @interface KtAbstractInterfaceBase : KtBase @@ -2450,26 +2450,26 @@ __attribute__((swift_name("AbstractInterfaceBase"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)foo __attribute__((swift_name("foo()"))); - (int32_t)bar __attribute__((swift_name("bar()"))); -@end; +@end __attribute__((swift_name("AbstractInterfaceBase2"))) @interface KtAbstractInterfaceBase2 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("AbstractInterfaceBase3"))) @interface KtAbstractInterfaceBase3 : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); - (int32_t)foo __attribute__((swift_name("foo()"))); -@end; +@end __attribute__((swift_name("GH3525Base"))) @interface KtGH3525Base : KtBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH3525"))) @@ -2480,7 +2480,7 @@ __attribute__((swift_name("GH3525"))) + (instancetype)new __attribute__((unavailable)); + (instancetype)gH3525 __attribute__((swift_name("init()"))); @property (class, readonly, getter=shared) KtGH3525 *shared __attribute__((swift_name("shared"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("TestStringConversion"))) @@ -2488,7 +2488,7 @@ __attribute__((swift_name("TestStringConversion"))) - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @property id str __attribute__((swift_name("str"))); -@end; +@end __attribute__((swift_name("GH3825"))) @protocol KtGH3825 @@ -2511,7 +2511,7 @@ __attribute__((swift_name("GH3825"))) Other uncaught Kotlin exceptions are fatal. */ - (BOOL)call2Callback:(void (^)(void))callback doThrow:(BOOL)doThrow error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("call2(callback:doThrow:)"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("GH3825KotlinImpl"))) @@ -2536,22 +2536,22 @@ __attribute__((swift_name("GH3825KotlinImpl"))) Other uncaught Kotlin exceptions are fatal. */ - (BOOL)call2Callback:(void (^)(void))callback doThrow:(BOOL)doThrow error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("call2(callback:doThrow:)"))); -@end; +@end __attribute__((swift_name("Foo_FakeOverrideInInterface"))) @protocol KtFoo_FakeOverrideInInterface @required - (void)fooT:(id _Nullable)t __attribute__((swift_name("foo(t:)"))); -@end; +@end __attribute__((swift_name("Bar_FakeOverrideInInterface"))) @protocol KtBar_FakeOverrideInInterface @required -@end; +@end @interface KtEnumeration (ValuesKt) - (KtEnumeration *)getAnswer __attribute__((swift_name("getAnswer()"))); -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ValuesKt"))) @@ -2734,38 +2734,38 @@ __attribute__((swift_name("ValuesKt"))) @property (class) int32_t gh3525BaseInitCount __attribute__((swift_name("gh3525BaseInitCount"))); @property (class) int32_t gh3525InitCount __attribute__((swift_name("gh3525InitCount"))); @property (class, readonly) BOOL isExperimentalMM __attribute__((swift_name("isExperimentalMM"))); -@end; +@end __attribute__((swift_name("InvariantSuper"))) @interface KtInvariantSuper : KtBase -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Invariant"))) @interface KtInvariant : KtInvariantSuper - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("OutVariantSuper"))) @interface KtOutVariantSuper : KtBase -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("OutVariant"))) @interface KtOutVariant : KtOutVariantSuper - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end __attribute__((swift_name("InVariantSuper"))) @interface KtInVariantSuper : KtBase -@end; +@end __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("InVariant"))) @interface KtInVariant : KtInVariantSuper - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -@end; +@end diff --git a/kotlin-native/runtime/src/main/cpp/ObjCExportErrors.mm b/kotlin-native/runtime/src/main/cpp/ObjCExportErrors.mm index d5365cdca8b..2f9c9346247 100644 --- a/kotlin-native/runtime/src/main/cpp/ObjCExportErrors.mm +++ b/kotlin-native/runtime/src/main/cpp/ObjCExportErrors.mm @@ -139,13 +139,13 @@ extern "C" OBJ_GETTER(Kotlin_ObjCExport_NSErrorAsException, id error) { } @interface NSError (NSErrorKotlinException) -@end; +@end @implementation NSError (NSErrorKotlinException) -(id)kotlinException { auto userInfo = self.userInfo; return userInfo == nullptr ? nullptr : userInfo[@"KotlinException"]; } -@end; +@end #endif diff --git a/kotlin-native/runtime/src/main/cpp/ObjCExportPrivate.h b/kotlin-native/runtime/src/main/cpp/ObjCExportPrivate.h index 048677082ea..57a52d77625 100644 --- a/kotlin-native/runtime/src/main/cpp/ObjCExportPrivate.h +++ b/kotlin-native/runtime/src/main/cpp/ObjCExportPrivate.h @@ -16,7 +16,7 @@ @interface KotlinBase : NSObject +(instancetype)createRetainedWrapper:(ObjHeader*)obj; -@end; +@end enum class ReleaseMode { kRelease, diff --git a/kotlin-native/runtime/src/main/cpp/ObjCInterop.mm b/kotlin-native/runtime/src/main/cpp/ObjCInterop.mm index 758abe5b52f..6dfec20b6da 100644 --- a/kotlin-native/runtime/src/main/cpp/ObjCInterop.mm +++ b/kotlin-native/runtime/src/main/cpp/ObjCInterop.mm @@ -61,7 +61,7 @@ struct KotlinObjCClassData { @protocol HasKotlinObjCClassData @required -(void*)_kotlinObjCClassData; -@end; +@end static inline struct KotlinObjCClassData* GetKotlinClassData(id objOrClass) { void* ptr = [(id)objOrClass _kotlinObjCClassData]; diff --git a/kotlin-native/runtime/src/objc/cpp/ObjCExportClasses.mm b/kotlin-native/runtime/src/objc/cpp/ObjCExportClasses.mm index e7929ed37fa..3c80493ce2d 100644 --- a/kotlin-native/runtime/src/objc/cpp/ObjCExportClasses.mm +++ b/kotlin-native/runtime/src/objc/cpp/ObjCExportClasses.mm @@ -28,7 +28,7 @@ @interface NSObject (NSObjectPrivateMethods) // Implemented for NSObject in libobjc/NSObject.mm -(BOOL)_tryRetain; -@end; +@end static void injectToRuntime(); @@ -167,10 +167,10 @@ static void injectToRuntime(); return [self retain]; } -@end; +@end @interface NSObject (NSObjectToKotlin) -@end; +@end @implementation NSObject (NSObjectToKotlin) -(ObjHeader*)toKotlin:(ObjHeader**)OBJ_RESULT { @@ -182,16 +182,16 @@ static void injectToRuntime(); return; objc_release(self); } -@end; +@end @interface NSString (NSStringToKotlin) -@end; +@end @implementation NSString (NSStringToKotlin) -(ObjHeader*)toKotlin:(ObjHeader**)OBJ_RESULT { RETURN_RESULT_OF(Kotlin_Interop_CreateKStringFromNSString, self); } -@end; +@end extern "C" { @@ -209,7 +209,7 @@ OBJ_GETTER(Kotlin_boxDouble, KDouble value); } @interface NSNumber (NSNumberToKotlin) -@end; +@end @implementation NSNumber (NSNumberToKotlin) -(ObjHeader*)toKotlin:(ObjHeader**)OBJ_RESULT { @@ -232,17 +232,17 @@ OBJ_GETTER(Kotlin_boxDouble, KDouble value); default: RETURN_RESULT_OF(Kotlin_ObjCExport_convertUnmappedObjCObject, self); } } -@end; +@end @interface NSDecimalNumber (NSDecimalNumberToKotlin) -@end; +@end @implementation NSDecimalNumber (NSDecimalNumberToKotlin) // Overrides [NSNumber toKotlin:] implementation. -(ObjHeader*)toKotlin:(ObjHeader**)OBJ_RESULT { RETURN_RESULT_OF(Kotlin_ObjCExport_convertUnmappedObjCObject, self); } -@end; +@end static void injectToRuntimeImpl() { // If the code below fails, then it is most likely caused by KT-42254. diff --git a/kotlin-native/runtime/src/objc/cpp/ObjCExportCollections.mm b/kotlin-native/runtime/src/objc/cpp/ObjCExportCollections.mm index 6051e333857..bf4033b0fc2 100644 --- a/kotlin-native/runtime/src/objc/cpp/ObjCExportCollections.mm +++ b/kotlin-native/runtime/src/objc/cpp/ObjCExportCollections.mm @@ -86,7 +86,7 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) { // when they are either frozen or if they are called on the worker that created them. @interface NSArray (NSArrayToKotlin) -@end; +@end @implementation NSArray (NSArrayToKotlin) -(KRef)toKotlin:(KRef*)OBJ_RESULT { @@ -98,10 +98,10 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) { return; objc_release(self); } -@end; +@end @interface NSMutableArray (NSMutableArrayToKotlin) -@end; +@end @implementation NSMutableArray (NSArrayToKotlin) -(KRef)toKotlin:(KRef*)OBJ_RESULT { @@ -113,11 +113,11 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) { return; objc_release(self); } -@end; +@end @interface NSSet (NSSetToKotlin) -@end; +@end @implementation NSSet (NSSetToKotlin) -(KRef)toKotlin:(KRef*)OBJ_RESULT { @@ -130,10 +130,10 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) { objc_release(self); } -@end; +@end @interface NSDictionary (NSDictionaryToKotlin) -@end; +@end @implementation NSDictionary (NSDictionaryToKotlin) -(KRef)toKotlin:(KRef*)OBJ_RESULT { @@ -146,10 +146,10 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) { objc_release(self); } -@end; +@end @interface KIteratorAsNSEnumerator : NSEnumerator -@end; +@end @implementation KIteratorAsNSEnumerator { KRefSharedHolder iteratorHolder; @@ -176,10 +176,10 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) { return nullptr; } } -@end; +@end @interface KListAsNSArray : NSArray -@end; +@end @implementation KListAsNSArray { KRefSharedHolder listHolder; @@ -212,10 +212,10 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) { return Kotlin_Collection_getSize(listHolder.ref()); } -@end; +@end @interface KMutableListAsNSMutableArray : NSMutableArray -@end; +@end @implementation KMutableListAsNSMutableArray { KRefSharedHolder listHolder; @@ -278,10 +278,10 @@ static inline KInt objCIndexToKotlinOrThrow(NSUInteger index) { Kotlin_MutableList_setObject(listHolder.ref(), objCIndexToKotlinOrThrow(index), kotlinObject); } -@end; +@end @interface KSetAsNSSet : NSSet -@end; +@end static inline id KSet_getElement(KRef set, id object) { if (object == NSNull.null) { @@ -338,10 +338,10 @@ static inline id KSet_getElement(KRef set, id object) { ObjHolder holder; return [KIteratorAsNSEnumerator createWithKIterator:Kotlin_Set_iterator(setHolder.ref(), holder.slot())]; } -@end; +@end @interface KotlinMutableSet : NSMutableSet -@end; +@end @implementation KotlinMutableSet { KRefSharedHolder setHolder; @@ -440,10 +440,10 @@ static inline id KSet_getElement(KRef set, id object) { ObjHolder holder; Kotlin_MutableCollection_removeObject(setHolder.ref(), refFromObjCOrNSNull(object, holder.slot())); } -@end; +@end @interface KMapAsNSDictionary : NSDictionary -@end; +@end static inline id KMap_get(KRef map, id aKey) { ObjHolder keyHolder, valueHolder; @@ -497,10 +497,10 @@ static inline id KMap_get(KRef map, id aKey) { return [KIteratorAsNSEnumerator createWithKIterator:Kotlin_Map_keyIterator(mapHolder.ref(), holder.slot())]; } -@end; +@end @interface KotlinMutableDictionary : NSMutableDictionary -@end; +@end @implementation KotlinMutableDictionary { KRefSharedHolder mapHolder; @@ -593,10 +593,10 @@ static inline id KMap_get(KRef map, id aKey) { Kotlin_MutableMap_remove(mapHolder.ref(), kotlinKey); } -@end; +@end @interface NSEnumerator (NSEnumeratorAsAssociatedObject) -@end; +@end @implementation NSEnumerator (NSEnumeratorAsAssociatedObject) -(void)releaseAsAssociatedObject:(ReleaseMode)mode { @@ -604,7 +604,7 @@ static inline id KMap_get(KRef map, id aKey) { return; objc_release(self); } -@end; +@end // Referenced from the generated code: diff --git a/kotlin-native/runtime/src/objc/cpp/ObjCExportNumbers.mm b/kotlin-native/runtime/src/objc/cpp/ObjCExportNumbers.mm index 4ca3850029a..24b0973debb 100644 --- a/kotlin-native/runtime/src/objc/cpp/ObjCExportNumbers.mm +++ b/kotlin-native/runtime/src/objc/cpp/ObjCExportNumbers.mm @@ -44,7 +44,7 @@ OBJ_GETTER(Kotlin_boxDouble, KDouble value); #pragma clang diagnostic ignored "-Wobjc-designated-initializers" @interface KotlinNumber : NSNumber -@end; +@end [[ noreturn ]] static void incorrectNumberInitialization(KotlinNumber* self, SEL _cmd) { [NSException raise:NSGenericException format:@"%@ can't be initialized with %s, use properly typed initialized", @@ -94,7 +94,7 @@ OBJ_GETTER(Kotlin_boxDouble, KDouble value); + (NSNumber *)numberWithFloat:(float)value { incorrectNumberFactory(self, _cmd); } + (NSNumber *)numberWithDouble:(double)value { incorrectNumberFactory(self, _cmd); } -@end; +@end /* The code below is generated by: @@ -116,7 +116,7 @@ fun main(args: Array) { private fun genBoolean(): String = """ @interface KotlinBoolean : KotlinNumber -@end; +@end @implementation KotlinBoolean { BOOL value_; @@ -154,7 +154,7 @@ private fun genBoolean(): String = """ RETURN_RESULT_OF(Kotlin_boxBoolean, value_); } -@end; +@end """.trimIndent() @@ -165,7 +165,7 @@ private fun genInteger( kind: String = getNSNumberKind(cType) ) = """ @interface Kotlin$name : KotlinNumber -@end; +@end @implementation Kotlin$name { $cType value_; @@ -206,7 +206,7 @@ private fun genInteger( RETURN_RESULT_OF(Kotlin_box$name, value_); } -@end; +@end """.trimIndent() @@ -220,7 +220,7 @@ private fun genFloating( kind: String = getNSNumberKind(cType) ): String = """ @interface Kotlin$name : KotlinNumber -@end; +@end @implementation Kotlin$name { $cType value_; @@ -268,7 +268,7 @@ ${if (cType != "double") """ RETURN_RESULT_OF(Kotlin_box$name, value_); } -@end; +@end """.trimIndent() */ @@ -276,7 +276,7 @@ ${if (cType != "double") """ // TODO: consider generating it by compiler. @interface KotlinBoolean : KotlinNumber -@end; +@end @implementation KotlinBoolean { BOOL value_; @@ -314,10 +314,10 @@ ${if (cType != "double") """ RETURN_RESULT_OF(Kotlin_boxBoolean, value_); } -@end; +@end @interface KotlinByte : KotlinNumber -@end; +@end @implementation KotlinByte { char value_; @@ -358,10 +358,10 @@ ${if (cType != "double") """ RETURN_RESULT_OF(Kotlin_boxByte, value_); } -@end; +@end @interface KotlinShort : KotlinNumber -@end; +@end @implementation KotlinShort { short value_; @@ -402,10 +402,10 @@ ${if (cType != "double") """ RETURN_RESULT_OF(Kotlin_boxShort, value_); } -@end; +@end @interface KotlinInt : KotlinNumber -@end; +@end @implementation KotlinInt { int value_; @@ -446,10 +446,10 @@ ${if (cType != "double") """ RETURN_RESULT_OF(Kotlin_boxInt, value_); } -@end; +@end @interface KotlinLong : KotlinNumber -@end; +@end @implementation KotlinLong { long long value_; @@ -490,10 +490,10 @@ ${if (cType != "double") """ RETURN_RESULT_OF(Kotlin_boxLong, value_); } -@end; +@end @interface KotlinUByte : KotlinNumber -@end; +@end @implementation KotlinUByte { unsigned char value_; @@ -534,10 +534,10 @@ ${if (cType != "double") """ RETURN_RESULT_OF(Kotlin_boxUByte, value_); } -@end; +@end @interface KotlinUShort : KotlinNumber -@end; +@end @implementation KotlinUShort { unsigned short value_; @@ -578,10 +578,10 @@ ${if (cType != "double") """ RETURN_RESULT_OF(Kotlin_boxUShort, value_); } -@end; +@end @interface KotlinUInt : KotlinNumber -@end; +@end @implementation KotlinUInt { unsigned int value_; @@ -622,10 +622,10 @@ ${if (cType != "double") """ RETURN_RESULT_OF(Kotlin_boxUInt, value_); } -@end; +@end @interface KotlinULong : KotlinNumber -@end; +@end @implementation KotlinULong { unsigned long long value_; @@ -666,10 +666,10 @@ ${if (cType != "double") """ RETURN_RESULT_OF(Kotlin_boxULong, value_); } -@end; +@end @interface KotlinFloat : KotlinNumber -@end; +@end @implementation KotlinFloat { float value_; @@ -717,10 +717,10 @@ ${if (cType != "double") """ RETURN_RESULT_OF(Kotlin_boxFloat, value_); } -@end; +@end @interface KotlinDouble : KotlinNumber -@end; +@end @implementation KotlinDouble { double value_; @@ -761,6 +761,6 @@ ${if (cType != "double") """ RETURN_RESULT_OF(Kotlin_boxDouble, value_); } -@end; +@end #endif // KONAN_OBJC_INTEROP diff --git a/kotlin-native/runtime/src/objc/cpp/ObjCInteropUtilsClasses.mm b/kotlin-native/runtime/src/objc/cpp/ObjCInteropUtilsClasses.mm index 143ea58d316..b73a31bf689 100644 --- a/kotlin-native/runtime/src/objc/cpp/ObjCInteropUtilsClasses.mm +++ b/kotlin-native/runtime/src/objc/cpp/ObjCInteropUtilsClasses.mm @@ -17,7 +17,7 @@ @interface KotlinObjectHolder : NSObject -(id)initWithRef:(KRef)ref; -(KRef)ref; -@end; +@end @implementation KotlinObjectHolder { KRefSharedHolder refHolder; @@ -39,7 +39,7 @@ [super dealloc]; } -@end; +@end static id Kotlin_Interop_createKotlinObjectHolder(KRef any) { if (any == nullptr) { @@ -59,7 +59,7 @@ static KRef Kotlin_Interop_unwrapKotlinObjectHolder(id holder) { // Used as an associated object for ObjCWeakReferenceImpl. @interface KotlinObjCWeakReference : NSObject -@end; +@end // libobjc: extern "C" { @@ -81,7 +81,7 @@ void objc_release(id obj); objc_release(self); } -@end; +@end extern "C" OBJ_GETTER(Kotlin_Interop_refFromObjC, id obj);