2014-07-13 01:04:16 +02:00
|
|
|
/// <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');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs("(var) b: string");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
// TypeCheck
|
|
|
|
verify.numberOfErrorsInCurrentFile(3);
|