2016-11-08 04:00:27 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-10-10 20:28:05 +02:00
|
|
|
////abstract class A<T> {
|
2016-11-08 23:26:10 +01:00
|
|
|
//// abstract f(x: T): T;
|
2017-10-10 20:28:05 +02:00
|
|
|
////}
|
2016-11-08 04:00:27 +01:00
|
|
|
////
|
2017-12-07 21:14:18 +01:00
|
|
|
////class C extends A<number> {}
|
2016-11-08 04:00:27 +01:00
|
|
|
|
2017-10-10 20:28:05 +02:00
|
|
|
verify.codeFix({
|
2017-12-02 01:38:59 +01:00
|
|
|
description: "Implement inherited abstract class",
|
2017-12-07 21:14:18 +01:00
|
|
|
newFileContent:
|
|
|
|
`abstract class A<T> {
|
|
|
|
abstract f(x: T): T;
|
|
|
|
}
|
|
|
|
|
2018-01-12 02:43:27 +01:00
|
|
|
class C extends A<number> {
|
|
|
|
f(x: number): number {
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
2017-12-07 21:14:18 +01:00
|
|
|
}`
|
2017-10-10 20:28:05 +02:00
|
|
|
});
|