瀏覽代碼

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

woollybah 7 年之前
父節點
當前提交
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