mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Added test.
This commit is contained in:
parent
87230bcc1b
commit
df1dd00f35
@ -0,0 +1,28 @@
|
||||
/// <reference path="./fourslash.ts" />
|
||||
|
||||
////interface IFoo {
|
||||
//// [|a|]: string;
|
||||
////}
|
||||
////class C<T extends IFoo> {
|
||||
//// method() {
|
||||
//// var x: T = {
|
||||
//// [|a|]: ""
|
||||
//// };
|
||||
//// x.[|a|];
|
||||
//// }
|
||||
////}
|
||||
////
|
||||
////
|
||||
////var x: IFoo = {
|
||||
//// [|a|]: "ss"
|
||||
////};
|
||||
|
||||
let ranges = test.ranges()
|
||||
for (let range of ranges) {
|
||||
goTo.position(range.start);
|
||||
|
||||
verify.referencesCountIs(ranges.length);
|
||||
for (let expectedReference of ranges) {
|
||||
verify.referencesAtPositionContains(expectedReference);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user