2
0
Эх сурвалжийг харах

Don't allow assignments to functions. Fixes #344.

woollybah 7 жил өмнө
parent
commit
58423d9f1d
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      expr.bmx

+ 1 - 1
expr.bmx

@@ -2667,7 +2667,7 @@ Type TIdentExpr Extends TExpr
 		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."
+			If Not isArg And Not fdecl.maybeFunctionPtr Err "Identifier '"+ident+"' cannot be used in this way."
 
 			fdecl.maybeFunctionPtr = False