Skip to content

Commit

Permalink
SymbolItem添加别名问题
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFruity committed Feb 23, 2021
1 parent 1d19130 commit 2d6eaeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OCRunner/RunEnv/ORStructDeclare.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 2d6eaeb

Please sign in to comment.