TypeScript/tests/cases/fourslash/incrementalResolveConstructorDeclaration.ts

20 lines
422 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;
diagnostics.setEditValidation(IncrementalEditValidation.None);
// Do resolve without typeCheck
goTo.marker('1');
verify.quickInfoIs("(var) val: c1");
2014-07-13 01:04:16 +02:00
// TypeCheck
verify.numberOfErrorsInCurrentFile(1);