-
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
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 <[email protected]>
- Loading branch information
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([]); |