Преглед изворни кода

When searching for ident, don't match ourself.

woollybah пре 7 година
родитељ
комит
83a2f8b4ca
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      decl.bmx

+ 1 - 1
decl.bmx

@@ -3318,7 +3318,7 @@ Type TModuleDecl Extends TScopeDecl
 		
 		
 			For Local mdecl:TModuleDecl = EachIn _getDeclTreeCache
 			For Local mdecl:TModuleDecl = EachIn _getDeclTreeCache
 
 
-				If ident = mdecl.ident
+				If ident = mdecl.ident And mdecl <> Self
 					_getDeclCache.Insert(ident, mdecl)
 					_getDeclCache.Insert(ident, mdecl)
 					Return mdecl
 					Return mdecl
 				End If
 				End If