TypeScript/tests/cases/fourslash/quickInfoOnNewKeyword01.ts
2019-05-06 21:21:37 +02:00

19 lines
524 B
TypeScript

/// <reference path='fourslash.ts' />
////class Cat {
//// /**
//// * NOTE: this constructor is private! Please use the factory function
//// */
//// private constructor() { }
////
//// static makeCat() { new Cat(); }
////}
////
////ne/*1*/w Ca/*2*/t();
verify.quickInfoAt('1', 'constructor Cat(): Cat',
'NOTE: this constructor is private! Please use the factory function');
verify.quickInfoAt('2', 'constructor Cat(): Cat',
'NOTE: this constructor is private! Please use the factory function');