TypeScript/tests/cases/fourslash/completionListProtectedMembers.ts

28 lines
747 B
TypeScript

/// <reference path="fourslash.ts"/>
////class Base {
//// protected y;
//// constructor(protected x) {}
//// method() { this./*1*/; }
////}
////class D1 extends Base {
//// protected z;
//// method1() { this./*2*/; }
////}
////class D2 extends Base {
//// method2() { this./*3*/; }
////}
////class D3 extends D1 {
//// method2() { this./*4*/; }
////}
////var b: Base;
////f./*5*/
verify.completions(
{ marker: "1", exact: ["y", "x", "method"] },
{ marker: "2", exact: ["z", "method1", "y", "x", "method"] },
{ marker: "3", exact: ["method2", "y", "x", "method"] },
{ marker: "4", exact: ["method2", "z", "method1", "y", "x", "method"] },
{ marker: "5", exact: undefined },
);