TypeScript/tests/cases/fourslash/referencesForClassParameter.ts

26 lines
409 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
/// <reference path='fourslash.ts'/>
// Reference to a class parameter.
////var p = 2;
////
////class p { }
////
////class foo {
//// constructor (public p: any) {
//// }
////
//// public f(p) {
//// this./*1*/p = p;
//// }
////
////}
////
////var n = new foo(undefined);
////n./*2*/p = null;
goTo.marker("1");
verify.referencesCountIs(3);
goTo.marker("2");
verify.referencesCountIs(3);