mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Fixing fourslash tests
This commit is contained in:
parent
c8423d3a89
commit
eeeb05b666
@ -15,6 +15,6 @@
|
||||
////x.commonProperty./**/
|
||||
|
||||
goTo.marker();
|
||||
verify.memberListContains("toString", "(method) toString(): string");
|
||||
verify.memberListContains("toString", "(property) toString: (() => string) | ((radix?: number) => string)");
|
||||
verify.memberListContains("valueOf", "(method) valueOf(): string | number");
|
||||
verify.memberListCount(2);
|
||||
@ -3,10 +3,10 @@
|
||||
//// class A {
|
||||
//// foo: string;
|
||||
//// }
|
||||
//// class C extends A {
|
||||
//// baz: string;
|
||||
//// class C {
|
||||
//// foo: string;
|
||||
//// }
|
||||
//// var xs /*1*/ = [(x: A) => { return x.foo; }, (x: C) => { return x.baz; }];
|
||||
//// var xs /*1*/ = [(x: A) => { return x.foo; }, (x: C) => { return x.foo; }];
|
||||
//// xs.forEach(y => y(new /*2*/A()));
|
||||
|
||||
verify.numberOfErrorsInCurrentFile(0);
|
||||
|
||||
@ -19,8 +19,8 @@
|
||||
goTo.marker("propertyReference");
|
||||
verify.definitionCountIs(2);
|
||||
goTo.definition(0);
|
||||
verify.caretAtMarker("propertyDefinition1");
|
||||
verify.caretAtMarker("propertyDefinition2");
|
||||
|
||||
goTo.marker("propertyReference");
|
||||
goTo.definition(1);
|
||||
verify.caretAtMarker("propertyDefinition2");
|
||||
verify.caretAtMarker("propertyDefinition1");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user