TypeScript/tests/cases/fourslash/codeFixClassImplementInterfaceTypeParamInstantiateError.ts

13 lines
365 B
TypeScript
Raw Normal View History

2016-11-05 00:34:10 +01:00
/// <reference path='fourslash.ts' />
//// interface I<T extends string> {
//// x: T;
//// }
////
//// class C implements I<number> { }
2016-11-08 23:13:25 +01:00
// TODO: (arozga) Don't know how to instantiate in codeFix
2016-11-05 00:34:10 +01:00
// if instantiation is invalid.
// Should be verify.codeFixAvailable([]);
verify.codeFixAvailable([{ description: "Implement interface 'I<number>'" }]);