2017-03-14 22:35:23 +01:00
|
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
|
////abstract class C1 { }
|
|
|
|
|
////abstract class C2 {
|
2018-04-05 21:33:00 +02:00
|
|
|
|
//// abstract fA<T extends number>(): T;
|
2017-12-07 21:14:18 +01:00
|
|
|
|
////}
|
|
|
|
|
////interface I1 extends C1, C2 { }
|
|
|
|
|
////class C3 implements I1 {[| |]}
|
2017-03-14 22:35:23 +01:00
|
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
|
verify.codeFix({
|
|
|
|
|
description: "Implement interface 'I1'",
|
|
|
|
|
newFileContent:
|
|
|
|
|
`abstract class C1 { }
|
|
|
|
|
abstract class C2 {
|
2018-04-05 21:33:00 +02:00
|
|
|
|
abstract fA<T extends number>(): T;
|
2017-03-14 22:35:23 +01:00
|
|
|
|
}
|
2017-12-07 21:14:18 +01:00
|
|
|
|
interface I1 extends C1, C2 { }
|
2018-01-12 02:43:27 +01:00
|
|
|
|
class C3 implements I1 {
|
2018-04-05 21:33:00 +02:00
|
|
|
|
fA<T extends number>(): T {
|
2018-01-12 02:43:27 +01:00
|
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
|
}
|
2017-12-07 21:14:18 +01:00
|
|
|
|
}`,
|
|
|
|
|
});
|