blob: bde667475dcf179062701a70911d0a65c7988215 [file] [log] [blame]
Douglas Gregora12d2942010-02-16 01:20:57 +00001// Matches
Douglas Gregor2e55e3a2010-02-17 00:34:30 +00002@interface I1 {
3 int ivar1;
4}
Douglas Gregora12d2942010-02-16 01:20:57 +00005@end
6
7// Matches
Douglas Gregor2e55e3a2010-02-17 00:34:30 +00008@interface I2 : I1 {
9 float ivar2;
10}
11@end
12
13// Ivar mismatch
14@interface I3 {
15 int ivar1;
16 int ivar2;
17}
18@end
19
20// Superclass mismatch
21@interface I4 : I2 {
22}
Douglas Gregora12d2942010-02-16 01:20:57 +000023@end
Douglas Gregorc3f2d2b2010-02-17 02:12:47 +000024
25// Methods match
26@interface I5
27- (int)foo;
28+ (float)bar;
29@end
30
31// Method mismatch
32@interface I6
33- (int)foo;
34+ (int)foo;
35@end
36
37// Method mismatch
38@interface I7
39- (int)foo;
40+ (int)bar:(int)x;
41@end
42
43// Method mismatch
44@interface I8
45- (int)foo;
46+ (int)bar:(float)x;
47@end