From c5f06d6e3f5ab89330650060f1418314281b4404 Mon Sep 17 00:00:00 2001 From: Vladimir Ivanov Date: Fri, 2 Apr 2021 19:38:22 +0300 Subject: [PATCH] Patch expectedLazyNoGenerics.h to corresond with new test (#4271) --- .../tests/objcexport/expectedLazyNoGenerics.h | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h b/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h index c04e1404fb7..007c0a12108 100644 --- a/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h +++ b/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h @@ -518,6 +518,28 @@ __attribute__((swift_name("TestGH3992.B"))) + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("KDocExport"))) +@interface KtKDocExport : KtBase +- (instancetype)initWithName:(NSString *)name __attribute__((swift_name("init(name:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); ++ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); +@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; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("KdocExportKt"))) +@interface KtKdocExportKt : KtBase + +/** + @note This method converts instances of IllegalArgumentException to errors. + Other uncaught Kotlin exceptions are fatal. +*/ ++ (NSString * _Nullable)whateverA:(NSString *)a error:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("whatever(a:)"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Kt35940Kt"))) @interface KtKt35940Kt : KtBase