From a13424cc8d445d2bb030c483046308f81a273a5a Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Fri, 11 May 2018 14:52:39 -0700 Subject: [PATCH] Add another test of js special assignment merging --- .../fourslash/jsSpecialAssignmentMerging2.ts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/cases/fourslash/jsSpecialAssignmentMerging2.ts diff --git a/tests/cases/fourslash/jsSpecialAssignmentMerging2.ts b/tests/cases/fourslash/jsSpecialAssignmentMerging2.ts new file mode 100644 index 0000000000000..c04432fcc2770 --- /dev/null +++ b/tests/cases/fourslash/jsSpecialAssignmentMerging2.ts @@ -0,0 +1,24 @@ +/// +// @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([]) +}