Merge pull request #12543 from wonderful-panda/fix-12536

tsserver: get candidates from <K extends keyof Foo> (fix #12536)
This commit is contained in:
Mohamed Hegazy
2016-12-30 13:23:07 -08:00
committed by GitHub
4 changed files with 21 additions and 1 deletions

View 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);