We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2466c57 commit c04b080Copy full SHA for c04b080
Test/Forward.m
@@ -18,14 +18,24 @@ @interface Forward2 : Test
18
@end
19
20
@interface ForwardingTarget : Test
21
+{
22
+ int y;
23
+}
24
25
26
BOOL forwardingTargetCalled;
27
28
@implementation ForwardingTarget
29
+- (id)init
30
31
+ y = 42;
32
+ return self;
33
34
+
35
- (void)foo: (int)x
36
{
37
assert(x == 42);
38
+ assert(x == y);
39
forwardingTargetCalled = YES;
40
}
41
@@ -58,7 +68,7 @@ int main(void)
58
68
59
69
objc_proxy_lookup = proxy_lookup;
60
70
__objc_msg_forward2 = forward;
61
- target = [ForwardingTarget new];
71
+ target = [[ForwardingTarget new] init];
62
72
id proxy = [Forward new];
63
73
[proxy foo: 42];
64
74
[proxy dealloc];
0 commit comments