Add test for overriding methods of Any from Swift

This commit is contained in:
Svyatoslav Scherbina
2021-01-27 12:55:55 +03:00
committed by Vasily Levchenko
parent 9fb2d4b956
commit 0a2a8a58c1
3 changed files with 71 additions and 0 deletions
@@ -663,6 +663,16 @@ __attribute__((swift_name("ArraysInitBlock")))
- (NSString *)log __attribute__((swift_name("log()")));
@end;
__attribute__((objc_subclassing_restricted))
__attribute__((swift_name("OverrideMethodsOfAnyKt")))
@interface KtOverrideMethodsOfAnyKt : KtBase
/**
@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;
__attribute__((objc_subclassing_restricted))
__attribute__((swift_name("ThrowsEmptyKt")))
@interface KtThrowsEmptyKt : KtBase