2016-10-11 23:09:21 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
////interface I {
|
2020-01-02 13:55:04 +01:00
|
|
|
//// f<T extends number>(x: T): T;
|
2017-12-07 21:14:18 +01:00
|
|
|
////}
|
|
|
|
////class C implements I {}
|
2016-10-11 23:09:21 +02:00
|
|
|
|
2017-12-07 21:14:18 +01:00
|
|
|
verify.codeFix({
|
|
|
|
description: "Implement interface 'I'",
|
|
|
|
newFileContent:
|
|
|
|
`interface I {
|
2020-01-02 13:55:04 +01:00
|
|
|
f<T extends number>(x: T): T;
|
2016-10-11 23:09:21 +02:00
|
|
|
}
|
2018-01-12 02:43:27 +01:00
|
|
|
class C implements I {
|
2020-01-02 13:55:04 +01:00
|
|
|
f<T extends number>(x: T): T {
|
2018-01-12 02:43:27 +01:00
|
|
|
throw new Error("Method not implemented.");
|
|
|
|
}
|
2017-12-07 21:14:18 +01:00
|
|
|
}`,
|
|
|
|
});
|