TypeScript/tests/cases/fourslash/codeFixClassExtendAbstractMethodTypeParamsInstantiateNumber.ts

12 lines
259 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
//// abstract class A<T> {
2016-11-08 23:26:10 +01:00
//// abstract f(x: T): T;
//// }
////
2017-03-13 01:14:20 +01:00
//// class C extends A<number> {[| |]}
2016-11-08 23:26:10 +01:00
verify.rangeAfterCodeFix(`f(x: number): number{
2017-03-13 02:52:38 +01:00
throw new Error("Method not implemented.");
}
`);