Browse Source

When searching for ident, don't match ourself.

woollybah 7 years ago
parent
commit
83a2f8b4ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      decl.bmx

+ 1 - 1
decl.bmx

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