diff options
-rw-r--r-- | MLKPackage.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MLKPackage.m b/MLKPackage.m index eace2a7..fb5ab20 100644 --- a/MLKPackage.m +++ b/MLKPackage.m @@ -329,9 +329,11 @@ static NSMutableDictionary *packages = nil; MLKSymbol *symbol; symbol = [_accessible_symbols objectForKey:symbolName]; - if (!symbol) + if (!symbol || ![_present_symbols containsObject:symbol]) { symbol = [MLKSymbol symbolWithName:symbolName package:self]; + [_accessible_symbols setObject:symbol forKey:symbolName]; + [_present_symbols addObject:symbol]; } [_shadowing_symbols addObject:symbol]; } |