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 authored and GitHub committed 2016-12-30 13:23:07 -08:00
commit 6418c2f9bb
4 files changed
+21 -1

No files matched your search

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