TypeScript/tests/cases/fourslash/incrementalResolveAccessor.ts
2014-10-07 11:30:27 -07:00

22 lines
460 B
TypeScript

/// <reference path="fourslash.ts" />
////class c1 {
//// get p1(): string {
//// return "30";
//// }
//// set p1(a: number) {
//// a = "30";
//// }
////}
////var val = new c1();
////var b = val.p1;
/////*1*/b;
diagnostics.setEditValidation(IncrementalEditValidation.None);
// Resolve without typeCheck
goTo.marker('1');
verify.quickInfoIs("(var) b: string");
// TypeCheck
verify.numberOfErrorsInCurrentFile(3);