TypeScript/tests/cases/fourslash/codeFixClassImplementClassFunctionVoidInferred.ts

22 lines
345 B
TypeScript
Raw Normal View History

2016-11-05 00:34:10 +01:00
/// <reference path='fourslash.ts' />
////class A {
//// f() {}
////}
2016-11-05 00:34:10 +01:00
////
////class B implements A {[| |]}
2016-11-05 00:34:10 +01:00
verify.codeFix({
description: "Implement interface 'A'",
newFileContent:
`class A {
f() {}
2016-11-05 00:34:10 +01:00
}
2018-01-12 02:43:27 +01:00
class B implements A {
f(): void {
throw new Error("Method not implemented.");
}
}`,
});