TypeScript/tests/cases/conformance/salsa/typeFromPropertyAssignment34.ts
Nathan Shively-Sanders ff05082e45
Bind non-expando property assignments at top-level (#26908)
* Bind non-expando property assignments at toplevel

Previously, only property assignments with expando initialisers were
bound in top-level statements. Now, all property assignments are bound.

This requires a matching change in the checker to make sure that these
assignments remain context sensitive if their valueDeclaration is a
'real' declaration (ie a non assignment-declaration).

* Add baselines for new test
2018-09-05 10:53:43 -07:00

11 lines
181 B
TypeScript

// @noEmit: true
// @allowjs: true
// @checkjs: true
// @Filename: file1.js
var N = {};
N.commands = {};
// @Filename: file2.js
N.commands.a = 111;
N.commands.b = function () { };