Преглед на файлове

Don't stop ident resolution if function not found. Fixes #174

woollybah преди 9 години
родител
ревизия
921106e345
променени са 1 файла, в които са добавени 9 реда и са изтрити 1 реда
  1. 9 1
      expr.bmx

+ 9 - 1
expr.bmx

@@ -2213,7 +2213,15 @@ Type TIdentExpr Extends TExpr
 		Local args:TExpr[]
 		If rhs args=[rhs]
 
-		Local fdecl:TFuncDecl=scope.FindFuncDecl( IdentLower(),args, , isArg, True,,SCOPE_ALL )
+		Local fdecl:TFuncDecl
+		
+		Try
+			fdecl=scope.FindFuncDecl( IdentLower(),args, , isArg, True,True,SCOPE_ALL )
+		Catch errorMessage:String
+			If errorMessage.StartsWith("Compile Error") Then
+				Throw errorMessage
+			End If
+		End Try
 
 		If fdecl
 			If _env.ModuleScope().IsStrict() And Not fdecl.IsProperty() And Not isArg And Not fdecl.maybeFunctionPtr Err "Identifier '"+ident+"' cannot be used in this way."