2014-08-13 20:22:33 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
// References to local inside a class.
|
|
|
|
|
|
|
|
////var n = 14;
|
|
|
|
////
|
|
|
|
////class foo {
|
|
|
|
//// private /*1*/n = 0;
|
|
|
|
////
|
|
|
|
//// public bar() {
|
|
|
|
//// this.n = 9;
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// constructor() {
|
|
|
|
//// this./*2*/n = 4;
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// public bar2() {
|
|
|
|
//// var n = 12;
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
|
|
|
|
goTo.marker("1");
|
|
|
|
verify.referencesCountIs(3);
|
|
|
|
|
|
|
|
goTo.marker("2");
|
2014-07-13 01:04:16 +02:00
|
|
|
verify.referencesCountIs(3);
|