18 lines
554 B
TypeScript
18 lines
554 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: TStr/*1*/
|
|
|
|
goTo.marker("1");
|
|
|
|
verify.memberListContains("I");
|
|
verify.memberListContains("TString");
|
|
verify.memberListContains("TNumber"); // REVIEW: Is this intended behavior?
|
|
|
|
// Ideally the following shouldn't show up since they're not types.
|
|
verify.memberListContains("foo");
|
|
verify.memberListContains("obj");
|