浏览代码

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
 
-				If ident = mdecl.ident
+				If ident = mdecl.ident And mdecl <> Self
 					_getDeclCache.Insert(ident, mdecl)
 					Return mdecl
 				End If