2015-11-11 21:19:47 +01:00
|
|
|
/// <reference path="./fourslash.ts" />
|
|
|
|
|
|
|
|
////interface IFoo {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|[|{| "isDefinition": true, "contextRangeIndex": 0 |}a|]: string;|]
|
2015-11-11 21:19:47 +01:00
|
|
|
////}
|
|
|
|
////class C<T extends IFoo> {
|
|
|
|
//// method() {
|
|
|
|
//// var x: T = {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}a|]: ""|]
|
2015-11-11 21:19:47 +01:00
|
|
|
//// };
|
|
|
|
//// x.[|a|];
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////
|
|
|
|
////var x: IFoo = {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 5 |}a|]: "ss"|]
|
2015-11-11 21:19:47 +01:00
|
|
|
////};
|
|
|
|
|
2019-06-05 23:10:51 +02:00
|
|
|
verify.singleReferenceGroup("(property) IFoo.a: string", "a");
|