2016-11-05 00:34:10 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
////abstract class A {
|
|
|
|
//// abstract x: number;
|
|
|
|
//// private y: number;
|
|
|
|
//// protected z: number;
|
|
|
|
//// public w: number;
|
2018-04-05 21:33:00 +02:00
|
|
|
//// public useY() { this.y; }
|
2017-12-07 21:14:18 +01:00
|
|
|
////}
|
2016-11-05 00:34:10 +01:00
|
|
|
////
|
2017-12-07 21:14:18 +01:00
|
|
|
////class C implements A {[| |]}
|
2016-11-05 00:34:10 +01:00
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
verify.codeFix({
|
|
|
|
description: "Implement interface 'A'",
|
|
|
|
newFileContent:
|
|
|
|
`abstract class A {
|
|
|
|
abstract x: number;
|
|
|
|
private y: number;
|
|
|
|
protected z: number;
|
|
|
|
public w: number;
|
2018-04-05 21:33:00 +02:00
|
|
|
public useY() { this.y; }
|
2017-12-07 21:14:18 +01:00
|
|
|
}
|
|
|
|
|
2018-01-12 02:43:27 +01:00
|
|
|
class C implements A {
|
|
|
|
x: number;
|
|
|
|
protected z: number;
|
|
|
|
public w: number;
|
2018-04-05 21:33:00 +02:00
|
|
|
public useY(): void {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
2017-12-07 21:14:18 +01:00
|
|
|
}`,
|
|
|
|
});
|