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');
|
2014-09-29 18:45:39 +02:00
|
|
|
verify.quickInfoIs("(var) val: c1");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
// TypeCheck
|
|
|
|
verify.numberOfErrorsInCurrentFile(1);
|