Added tests for missing 'this' property accesses.

This commit is contained in:
Daniel Rosenwasser
2016-11-11 01:25:50 -08:00
parent 39eb187e5c
commit da356b075a
2 changed files with 19 additions and 0 deletions
@@ -0,0 +1,10 @@
/// <reference path='fourslash.ts' />
////class C {
//// foo: number;
//// constructor() {
//// [|foo = 10|];
//// }
////}
verify.rangeAfterCodeFix("this.foo = 10");
@@ -0,0 +1,9 @@
/// <reference path='fourslash.ts' />
////class C {
//// constructor(public foo) {
//// }
//// bar() { [|foo = 10|] };
////}
verify.rangeAfterCodeFix("this.foo = 10");