19 lines
585 B
TypeScript
19 lines
585 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
////interface I<TString, TNumber> {
|
|
//// [s: string]: TString;
|
|
//// [s: number]: TNumber;
|
|
////}
|
|
////
|
|
////declare function foo<TString, TNumber>(obj: I<TString, TNumber>): { str: TString/*1*/
|
|
|
|
goTo.marker("1");
|
|
|
|
verify.completionListContains("I");
|
|
verify.completionListContains("TString");
|
|
verify.completionListContains("TNumber"); // REVIEW: Is this intended behavior?
|
|
|
|
// Ideally the following shouldn't show up since they're not types.
|
|
verify.not.completionListContains("foo");
|
|
verify.not.completionListContains("obj");
|