-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Andy
authored
Jun 4, 2018
1 parent
3bf21be
commit 4e17e77
Showing
12 changed files
with
159 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/// <reference path='fourslash.ts' /> | ||
|
||
// @allowJs: true | ||
|
||
// @Filename: /a.ts | ||
////[|export const x = 0;|] | ||
////export const y = 0; | ||
|
||
// @Filename: /b.ts | ||
////import * as a from "./a"; | ||
////a.x; | ||
////a.y; | ||
|
||
// @Filename: /c.ts | ||
////import a = require("./a"); | ||
////a.x; | ||
////a.y; | ||
|
||
// @Filename: /d.js | ||
////const a = require("./a"); | ||
////a.x; | ||
////a.y; | ||
|
||
verify.moveToNewFile({ | ||
newFileContents: { | ||
"/a.ts": | ||
`export const y = 0;`, | ||
|
||
"/x.ts": | ||
`export const x = 0;`, | ||
|
||
"/b.ts": | ||
`import * as a from "./a"; | ||
import * as x from "./x"; | ||
x.x; | ||
a.y;`, | ||
|
||
"/c.ts": | ||
`import a = require("./a"); | ||
import x = require("./x"); | ||
x.x; | ||
a.y;`, | ||
|
||
"/d.js": | ||
`const a = require("./a"), x = require("./x"); | ||
x.x; | ||
a.y;`, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters