forked from microsoft/TypeScript
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for type parameters on original type when getting type argument…
… completions (microsoft#46614) * Add failing test. * Check for type parameters on the original type when asking for the type argument constraint. * Update tests/cases/fourslash/stringLiteralTypeCompletionsInTypeArgForNonGeneric1.ts
- Loading branch information
1 parent
4cdb251
commit 97f1c74
Showing
2 changed files
with
12 additions
and
1 deletion.
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
10 changes: 10 additions & 0 deletions
10
tests/cases/fourslash/stringLiteralTypeCompletionsInTypeArgForNonGeneric1.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,10 @@ | ||
/// <reference path="./fourslash.ts" /> | ||
|
||
////interface Foo {} | ||
////type Bar = {}; | ||
//// | ||
////let x: Foo<"/*1*/">; | ||
////let y: Bar<"/*2*/">; | ||
|
||
verify.completions({ marker: test.markers() }); | ||
|