TypeScript/tests/cases/fourslash/findAllRefsPropertyContextuallyTypedByTypeParam01.ts

20 lines
526 B
TypeScript

/// <reference path="./fourslash.ts" />
////interface IFoo {
//// [|{| "isWriteAccess": true, "isDefinition": true |}a|]: string;
////}
////class C<T extends IFoo> {
//// method() {
//// var x: T = {
//// [|{| "isWriteAccess": true, "isDefinition": true |}a|]: ""
//// };
//// x.[|a|];
//// }
////}
////
////
////var x: IFoo = {
//// [|{| "isWriteAccess": true, "isDefinition": true |}a|]: "ss"
////};
verify.singleReferenceGroup("(property) IFoo.a: string");