2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
// Reference a class static.
|
|
|
|
|
|
|
|
// @Filename: referencesOnStatic_1.ts
|
|
|
|
////var n = 43;
|
|
|
|
////
|
|
|
|
////class foo {
|
|
|
|
//// static n = '';
|
|
|
|
////
|
|
|
|
//// public bar() {
|
|
|
|
//// foo./*1*/n = "'";
|
|
|
|
//// if(foo.n) {
|
|
|
|
//// var x = foo.n;
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////class foo2 {
|
2014-08-13 20:22:33 +02:00
|
|
|
//// private x = foo./*2*/n;
|
2014-07-13 01:04:16 +02:00
|
|
|
//// constructor() {
|
|
|
|
//// foo./*3*/n = x;
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// function b(n) {
|
|
|
|
//// n = foo.n;
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
|
|
|
// @Filename: referencesOnStatic_2.ts
|
|
|
|
////var q = foo.n;
|
|
|
|
|
|
|
|
goTo.marker("1");
|
|
|
|
verify.referencesCountIs(8);
|
|
|
|
|
|
|
|
goTo.marker("2");
|
|
|
|
verify.referencesCountIs(8);
|
|
|
|
|
|
|
|
goTo.marker("3");
|
|
|
|
verify.referencesCountIs(8);
|