Skip to content

Commit 9af052a

Browse files
committed
Add another test of js special assignment merging (#24070)
1 parent 7d1502e commit 9af052a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/// <reference path="fourslash.ts" />
2+
// @noEmit: true
3+
// @allowJs: true
4+
// @checkJs: true
5+
6+
// @Filename: b.d.ts
7+
//// declare namespace N {
8+
//// class X { }
9+
//// }
10+
// @Filename: a.js
11+
//// var N = {};
12+
//// N.X = function() { };
13+
// @Filename: test.js
14+
//// var c = N.X
15+
//// /*1*/
16+
17+
// #24015
18+
// This failed with 13 and up on my machine, so 20 is 2**7 more than needed.
19+
for (let i = 0; i < 20; i++) {
20+
goTo.marker('1');
21+
edit.insertLine('c');
22+
23+
verify.getSemanticDiagnostics([])
24+
}

0 commit comments

Comments
 (0)