forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For import completion, use an existing namespace import (microsoft#20457
- Loading branch information
Andy
authored
Dec 21, 2017
1 parent
98b212d
commit 813864f
Showing
5 changed files
with
44 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/// <reference path="fourslash.ts" /> | ||
|
||
// @Filename: /foo-bar.ts | ||
////export default function fooBar(); | ||
|
||
// @Filename: /b.ts | ||
////[|import * as fb from "./foo-bar"; | ||
////foo/**/Bar|] | ||
|
||
goTo.file("/b.ts"); | ||
// No suggestion to use `fb.fooBar` (which would be wrong) | ||
verify.importFixAtPosition([`import fooBar, * as fb from "./foo-bar"; | ||
fooBar`]); |