forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick PR microsoft#39950 into release-4.0 (microsoft#39951)
Component commits: 6e5d75b Use isUncalledFunctionReference for aliases too Fixes bogus deprecated notices on imports of functions with deprecated overloads, but with some non-deprecated overloads. Fixes microsoft/vscode#104238 e2eb319 Just check all declarations, don't call isUncalledFunction Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com>
- Loading branch information
1 parent
264d27e
commit 3055018
Showing
3 changed files
with
25 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
// @Filename: first.ts | ||
//// /** @deprecated */ | ||
//// export declare function tap<T>(next: null): void; | ||
//// export declare function tap<T>(next: T): T; | ||
// @Filename: second.ts | ||
//// import { tap } from './first'; | ||
//// tap | ||
|
||
goTo.file('second.ts') | ||
verify.noErrors() | ||
verify.getSuggestionDiagnostics([]); |
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,11 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
// @Filename: first.ts | ||
//// export class logger { } | ||
// @Filename: second.ts | ||
//// import { logger } from './first'; | ||
//// new logger() | ||
|
||
goTo.file('second.ts') | ||
verify.noErrors() | ||
verify.getSuggestionDiagnostics([]); |