TypeScript/tests/cases/fourslash/codeFixClassExtendAbstractPrivateProperty.ts

16 lines
419 B
TypeScript
Raw Normal View History

2016-10-28 03:39:49 +02:00
/// <reference path='fourslash.ts' />
//// abstract class A {
//// private abstract x: number;
//// m() { this.x; } // Avoid unused private
2016-10-28 03:39:49 +02:00
//// }
////
2017-03-13 01:14:20 +01:00
//// class C extends A {[| |]}
2016-10-28 03:39:49 +02:00
// We don't know how to fix this problem. We can:
// 1) Make x protected, and then insert.
// 2) Make x private, and then insert.
// 3) Make x not abstract.
2016-11-09 01:48:54 +01:00
// So we offer no fixes.
2016-10-28 03:39:49 +02:00
verify.not.codeFixAvailable();