From 2d6eaeb9f098d3fcbd8d2dc254e742913f67e899 Mon Sep 17 00:00:00 2001 From: Ke Ming Jiang <389185764@qq.com> Date: Tue, 23 Feb 2021 13:32:01 +0800 Subject: [PATCH] =?UTF-8?q?SymbolItem=E6=B7=BB=E5=8A=A0=E5=88=AB=E5=90=8D?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OCRunner/RunEnv/ORStructDeclare.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];