TypeScript/tests/cases/fourslash/incrementalResolveConstructorDeclaration.ts

17 lines
341 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
/// <reference path="fourslash.ts" />
////class c1 {
//// private b: number;
//// constructor(a: string) {
//// this.b = a;
//// }
////}
////var val = new c1("hello");
/////*1*/val;
2014-07-13 01:04:16 +02:00
// Do resolve without typeCheck
2016-09-09 18:02:55 +02:00
verify.quickInfoAt("1", "var val: c1");
2014-07-13 01:04:16 +02:00
// TypeCheck
verify.numberOfErrorsInCurrentFile(1);