File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,13 @@ typedef NSObject<ImportedProtocolBase> *ImportedProtocolBase_t;
19
19
typedef NSObject <ErrorProto> *ErrorProto_t;
20
20
21
21
// Instance and static member onto protocol
22
- void mutateSomeStaticState ()
22
+ void mutateSomeStaticState (void )
23
23
__attribute__((swift_name(" ErrorProto.mutateSomeStaticState()" ))); // ok
24
24
void mutateSomeInstanceState (ErrorProto_t self) __attribute__((
25
25
swift_name (" ErrorProto.mutateSomeInstanceState(self:)" ))); // error
26
26
27
27
// Non-prototype declaration
28
28
extern void IAMErrorStructHasPrototype (void )
29
29
__attribute__((swift_name(" ErrorStruct.hasPrototype()" ))); // ok
30
- extern void IAMErrorStructNonPrototype ()
31
- __attribute__((swift_name(" ErrorStruct.nonPrototype()" ))); // error
32
30
33
31
#endif // IMPORT_AS_MEMBER_ERR_H
Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ import IAMError
43
43
44
44
// Errors
45
45
ErrorStruct . hasPrototype ( ) ;
46
- ErrorStruct . nonPrototype ( ) ;
47
- // expected-error@-1{{type 'ErrorStruct' has no member 'nonPrototype'}}
48
46
49
47
// Protocols
50
48
@objc class Foo : NSObject , IAMProto { }
You can’t perform that action at this time.
0 commit comments