| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| info: "\"var\" does not override function declaration" |
| Creating a function and a variable with identical Identifiers in |
| // since "var" does not override function declaration __decl is set to function |
| ////////////////////////////////////////////////////////////////////////////// |
| if (typeof __decl !== "function") { |
| $ERROR('#1: typeof __decl === "function". Actual: typeof __decl ==='+typeof __decl); |
| ////////////////////////////////////////////////////////////////////////////// |
| //since statement was evaluted __decl turns to 1 from function |
| ////////////////////////////////////////////////////////////////////////////// |
| $ERROR('#2: __decl === 1. Actual: __decl ==='+__decl); |
| ////////////////////////////////////////////////////////////////////////////// |
| function __decl(){return 1;} |