Add tests for different constructor parameter cases.

This commit is contained in:
Paul van Brenk
2016-10-21 15:48:24 -07:00
parent 03a6eeb643
commit 79fa9dbc5f
3 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
//// class C1 {
//// [|constructor(public p1: string, private p2: boolean, public p3: any, p5)|] { p5; }
//// }
verify.codeFixAtPosition("constructor(public p1: string, public p3: any, p5)");

View File

@@ -0,0 +1,8 @@
/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
//// class C1 {
//// [|constructor(public p1: string, public p2: boolean, private p3: any, p5)|] { p5; }
//// }
verify.codeFixAtPosition("constructor(public p1: string, public p2: boolean, p5)");

View File

@@ -0,0 +1,8 @@
/// <reference path='fourslash.ts' />
// @noUnusedLocals: true
//// class C1 {
//// [|constructor(private readonly p2: boolean, p5)|] { p5; }
//// }
verify.codeFixAtPosition("constructor(p5)");