diff --git a/OCRunner/RunEnv/ORStructDeclare.m b/OCRunner/RunEnv/ORStructDeclare.m index f4460b5..0561c26 100644 --- a/OCRunner/RunEnv/ORStructDeclare.m +++ b/OCRunner/RunEnv/ORStructDeclare.m @@ -151,7 +151,7 @@ - (void)addTypePair:(ORTypeVarPair *)typePair{ [self addTypePair:typePair forAlias:typePair.var.varname]; } - (void)addTypePair:(ORTypeVarPair *)typePair forAlias:(NSString *)alias{ - ORSymbolItem *item = [self symbolItemForTypeName:typePair.type.name]; + ORSymbolItem *item = [self symbolItemForTypeName:alias]; if (item == nil) { item = [[ORSymbolItem alloc] init]; item.typeEncode = [NSString stringWithUTF8String:typePair.typeEncode];