2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
// Class references should work across file and not find local variables.
|
|
|
|
|
|
|
|
// @Filename: referenceToClass_1.ts
|
2014-08-13 20:22:33 +02:00
|
|
|
////class /*1*/foo {
|
2014-07-13 01:04:16 +02:00
|
|
|
//// public n: /*2*/foo;
|
|
|
|
//// public foo: number;
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////class bar {
|
|
|
|
//// public n: fo/*3*/o;
|
|
|
|
//// public k = new foo();
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////module mod {
|
|
|
|
//// var k: foo = null;
|
|
|
|
////}
|
|
|
|
|
|
|
|
// @Filename: referenceToClass_2.ts
|
|
|
|
////var k: /*4*/foo;
|
|
|
|
|
|
|
|
goTo.marker("1");
|
|
|
|
verify.referencesCountIs(6);
|
|
|
|
|
|
|
|
goTo.marker("2");
|
|
|
|
|
|
|
|
verify.referencesCountIs(6);
|
|
|
|
|
|
|
|
goTo.marker("3");
|
|
|
|
|
|
|
|
verify.referencesCountIs(6);
|
|
|
|
|
|
|
|
goTo.marker("4");
|
|
|
|
|
|
|
|
verify.referencesCountIs(6);
|