Skip to content

Commit da356b0

Browse files
Added tests for missing 'this' property accesses.
1 parent 39eb187 commit da356b0

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
////class C {
4+
//// foo: number;
5+
//// constructor() {
6+
//// [|foo = 10|];
7+
//// }
8+
////}
9+
10+
verify.rangeAfterCodeFix("this.foo = 10");
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
////class C {
4+
//// constructor(public foo) {
5+
//// }
6+
//// bar() { [|foo = 10|] };
7+
////}
8+
9+
verify.rangeAfterCodeFix("this.foo = 10");

0 commit comments

Comments
 (0)