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:
gmp
2019-04-30 06:59:05 -04:00
parent d78e055008
commit 0e89d2c29a
6 changed files with 50 additions and 26 deletions
+2 -2
View File
@@ -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 -2
View File
@@ -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];
}