瀏覽代碼

Make scoped searches behave better. Fixes #404.

woollybah 6 年之前
父節點
當前提交
5e96631331
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      decl.bmx

+ 3 - 1
decl.bmx

@@ -1148,7 +1148,9 @@ Type TScopeDecl Extends TDecl
 			End If
 			End If
 		End If
 		End If
 		
 		
-		If Not decl Then
+		' if scope isn't static, and we didn't find it yet, look no further
+		' otherwise, look harder...
+		If Not decl And static Then
 			' try scope search
 			' try scope search
 			decl = TValDecl( FindDecl( ident, True ) )
 			decl = TValDecl( FindDecl( ident, True ) )