TypeScript/tests/cases/fourslash/incrementalResolveConstructorDeclaration.ts
2016-09-13 11:49:01 -07:00

17 lines
341 B
TypeScript

/// <reference path="fourslash.ts" />
////class c1 {
//// private b: number;
//// constructor(a: string) {
//// this.b = a;
//// }
////}
////var val = new c1("hello");
/////*1*/val;
// Do resolve without typeCheck
verify.quickInfoAt("1", "var val: c1");
// TypeCheck
verify.numberOfErrorsInCurrentFile(1);