Do not memoize type parser as it causes bugs with typedefs,
'instancetype' etc. Clean up typedefs and type parameters as soon as Types are created.
This commit is contained in:
@@ -10,7 +10,7 @@ struct stru {int a,b;};
|
||||
int (*f)();
|
||||
}
|
||||
|
||||
- (ClassOne*) init;
|
||||
- (instancetype) init;
|
||||
- (int) geti1;
|
||||
- (int *) getp1;
|
||||
- (int (*)()) getf1;
|
||||
@@ -24,5 +24,5 @@ struct stru {int a,b;};
|
||||
|
||||
@interface ClassTwo : ClassOne
|
||||
{ }
|
||||
- (ClassTwo*) init;
|
||||
- (instancetype) init;
|
||||
@end
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
@implementation ClassOne
|
||||
|
||||
- (ClassOne*) init
|
||||
- (instancetype) init
|
||||
{
|
||||
ClassOne *ret;
|
||||
ret = [ClassOne alloc];
|
||||
@@ -65,7 +65,7 @@
|
||||
@end
|
||||
|
||||
@implementation ClassTwo
|
||||
- (ClassTwo*) init
|
||||
- (instancetype) init
|
||||
{
|
||||
return [super init];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user