mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Add another test of js special assignment merging (#24070)
This commit is contained in:
parent
5cc833a5f5
commit
dfef2fa9a2
24
tests/cases/fourslash/jsSpecialAssignmentMerging2.ts
Normal file
24
tests/cases/fourslash/jsSpecialAssignmentMerging2.ts
Normal 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([])
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user