* 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
10 lines
181 B
TypeScript
10 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 () { };
|