TypeScript/tests/cases/fourslash/codeFixClassImplementInterfaceTypeParamInstantiateT.ts

14 lines
272 B
TypeScript
Raw Normal View History

2016-11-05 00:34:10 +01:00
/// <reference path='fourslash.ts' />
////interface I<T> { x: T; }
////class C<T> implements I<T> {}
2016-11-05 00:34:10 +01:00
verify.codeFix({
description: "Implement interface 'I<T>'",
newFileContent:
`interface I<T> { x: T; }
2018-01-12 02:43:27 +01:00
class C<T> implements I<T> {
x: T;
}`
});