mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
Merge pull request #12543 from wonderful-panda/fix-12536
tsserver: get candidates from <K extends keyof Foo> (fix #12536)
This commit is contained in:
15
tests/cases/fourslash/completionForStringLiteral5.ts
Normal file
15
tests/cases/fourslash/completionForStringLiteral5.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////interface Foo {
|
||||
//// foo: string;
|
||||
//// bar: string;
|
||||
////}
|
||||
////
|
||||
////function f<K extends keyof Foo>(a: K) { };
|
||||
////f("/*1*/
|
||||
|
||||
goTo.marker('1');
|
||||
verify.completionListContains("foo");
|
||||
verify.completionListContains("bar");
|
||||
verify.memberListCount(2);
|
||||
|
||||
Reference in New Issue
Block a user