File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -19,5 +19,5 @@ extern (Objective-C) extern class NSObject
19
19
// Declaring a root class with a method with a body
20
20
extern (Objective-C ) class Test
21
21
{
22
- void foo () {}
22
+ void foo () @selector( " foo " ) {}
23
23
}
Original file line number Diff line number Diff line change 1
1
module library ;
2
2
3
+ version (D_ObjectiveC )
4
+ import core.attribute : selector;
5
+
3
6
extern (C++ ):
4
7
5
8
int foo (ref const S s)
@@ -113,7 +116,8 @@ extern(C++) class VTable
113
116
{
114
117
extern (D ) int hidden_1() { return 1 ; }
115
118
int callable_2 () { return 2 ; }
116
- extern (Objective-C ) int hidden_3() { return 3 ; }
119
+ version (D_ObjectiveC )
120
+ extern (Objective-C ) int hidden_3() @selector(" hidden_3" ) { return 3 ; }
117
121
int callable_4 () { return 4 ; }
118
122
extern (D ) final int hidden_5() { return 5 ; }
119
123
int callable_6 () { return 6 ; }
You can’t perform that action at this time.
0 commit comments