TypeScript/tests/cases/fourslash/quickInfoOnNewKeyword01.ts

19 lines
524 B
TypeScript
Raw Normal View History

2019-05-05 19:00:01 +02:00
/// <reference path='fourslash.ts' />
////class Cat {
//// /**
//// * NOTE: this constructor is private! Please use the factory function
//// */
//// private constructor() { }
////
//// static makeCat() { new Cat(); }
////}
////
2019-05-06 21:21:37 +02:00
////ne/*1*/w Ca/*2*/t();
2019-05-05 19:00:01 +02:00
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');