Enable some more tests
This commit is contained in:
parent
6a92b21151
commit
f45ab4229c
|
@ -3,7 +3,7 @@
|
||||||
// Class references should work across file and not find local variables.
|
// Class references should work across file and not find local variables.
|
||||||
|
|
||||||
// @Filename: referenceToClass_1.ts
|
// @Filename: referenceToClass_1.ts
|
||||||
////class foo/*1*/ {
|
////class /*1*/foo {
|
||||||
//// public n: /*2*/foo;
|
//// public n: /*2*/foo;
|
||||||
//// public foo: number;
|
//// public foo: number;
|
||||||
////}
|
////}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
//// }
|
//// }
|
||||||
////
|
////
|
||||||
//// constructor() {
|
//// constructor() {
|
||||||
//// this.n/*2*/ = 4;
|
//// this./*2*/n = 4;
|
||||||
//// }
|
//// }
|
||||||
////
|
////
|
||||||
//// public bar2() {
|
//// public bar2() {
|
||||||
|
@ -20,9 +20,6 @@
|
||||||
//// }
|
//// }
|
||||||
////}
|
////}
|
||||||
|
|
||||||
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
|
||||||
edit.insert('');
|
|
||||||
|
|
||||||
goTo.marker("1");
|
goTo.marker("1");
|
||||||
verify.referencesCountIs(3);
|
verify.referencesCountIs(3);
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
////var x;
|
////var x;
|
||||||
////var n;
|
////var n;
|
||||||
////
|
////
|
||||||
////function n(x: number, n/*1*/: number) {
|
////function n(x: number, /*1*/n: number) {
|
||||||
//// /*2*/n = 32;
|
//// /*2*/n = 32;
|
||||||
//// x = n;
|
//// x = n;
|
||||||
////}
|
////}
|
||||||
|
|
|
@ -73,12 +73,12 @@
|
||||||
|
|
||||||
// References to a field declared in a base class.
|
// References to a field declared in a base class.
|
||||||
goTo.marker("1");
|
goTo.marker("1");
|
||||||
verify.referencesCountIs(3);
|
verify.referencesCountIs(2);
|
||||||
|
|
||||||
// References to a field declared in a base interface.
|
// References to a field declared in a base interface.
|
||||||
goTo.marker("2");
|
goTo.marker("2");
|
||||||
verify.referencesCountIs(3);
|
verify.referencesCountIs(2);
|
||||||
|
|
||||||
// References to a field declared in a chain of base class and interfaces.
|
// References to a field declared in a chain of base class and interfaces.
|
||||||
goTo.marker("3");
|
goTo.marker("3");
|
||||||
verify.referencesCountIs(6);
|
verify.referencesCountIs(2);
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
////}
|
////}
|
||||||
////
|
////
|
||||||
////class foo2 {
|
////class foo2 {
|
||||||
//// private x = foo.n/*2*/;
|
//// private x = foo./*2*/n;
|
||||||
//// constructor() {
|
//// constructor() {
|
||||||
//// foo./*3*/n = x;
|
//// foo./*3*/n = x;
|
||||||
//// }
|
//// }
|
||||||
|
|
Loading…
Reference in a new issue