Browse Source

Make scoped searches behave better. Fixes #404.

woollybah 6 năm trước cách đây
mục cha
commit
5e96631331
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      decl.bmx

+ 3 - 1
decl.bmx

@@ -1148,7 +1148,9 @@ Type TScopeDecl Extends TDecl
 			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
 			decl = TValDecl( FindDecl( ident, True ) )