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.
Don't add completion for method if the
this
parameter doesn't match (…
- Loading branch information
Andy
authored
Dec 18, 2017
1 parent
2efc92d
commit 1562a27
Showing
4 changed files
with
39 additions
and
9 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
15 changes: 15 additions & 0 deletions
15
tests/cases/fourslash/completionsMethodWithThisParameter.ts
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,15 @@ | ||
/// <reference path='fourslash.ts'/> | ||
|
||
////class A<T> { | ||
//// value: T; // Make the type parameter actually matter | ||
//// ms(this: A<string>) {} | ||
//// mo(this: A<{}>) {} | ||
////} | ||
//// | ||
////const s = new A<string>(); | ||
////const n = new A<number>(); | ||
////s./*s*/; | ||
////n./*n*/; | ||
|
||
verify.completionsAt("s", ["value", "ms", "mo"]); | ||
verify.completionsAt("n", ["value", "mo"]); |