Add another test of js special assignment merging (#24070)

This commit is contained in:
Nathan Shively-Sanders 2018-05-11 16:24:42 -07:00 committed by GitHub
parent 5cc833a5f5
commit dfef2fa9a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,24 @@
/// <reference path="fourslash.ts" />
// @noEmit: true
// @allowJs: true
// @checkJs: true
// @Filename: b.d.ts
//// declare namespace N {
//// class X { }
//// }
// @Filename: a.js
//// var N = {};
//// N.X = function() { };
// @Filename: test.js
//// var c = N.X
//// /*1*/
// #24015
// This failed with 13 and up on my machine, so 20 is 2**7 more than needed.
for (let i = 0; i < 20; i++) {
goTo.marker('1');
edit.insertLine('c');
verify.getSemanticDiagnostics([])
}