mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-09 16:39:46 -05:00
SuperFix fourslash tests
This commit is contained in:
10
tests/cases/fourslash/superFix1.ts
Normal file
10
tests/cases/fourslash/superFix1.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////class Base{
|
||||
////}
|
||||
////class C extends Base{
|
||||
//// constructor() {[| |]
|
||||
//// }
|
||||
////}
|
||||
|
||||
verify.codeFixAtPosition('super();');
|
||||
13
tests/cases/fourslash/superFix2.ts
Normal file
13
tests/cases/fourslash/superFix2.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////class Base{
|
||||
////}
|
||||
////class C extends Base{
|
||||
//// private a:number;
|
||||
//// constructor() {[|
|
||||
//// this.a = 12;
|
||||
//// super();|]
|
||||
//// }
|
||||
////}
|
||||
|
||||
verify.codeFixAtPosition("super(); this.a = 12;");
|
||||
Reference in New Issue
Block a user