From 23e870e266b3b4838b98e18db516501c9dbef695 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 6 Jul 2008 16:35:39 +0200 Subject: Fix SHADOW. --- MLKPackage.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; } -- cgit v1.2.3