diff --git a/tests/cases/fourslash/codeFixClassExprUnImplementedClassMissingFunctionVoidInferred.ts b/tests/cases/fourslash/codeFixClassExprUnImplementedClassMissingFunctionVoidInferred.ts new file mode 100644 index 00000000000..bdf8ea3bd25 --- /dev/null +++ b/tests/cases/fourslash/codeFixClassExprUnImplementedClassMissingFunctionVoidInferred.ts @@ -0,0 +1,13 @@ +/// + +//// class A { +//// f() {} +//// } +//// +//// let B = class implements A {[| |]} + +verify.rangeAfterCodeFix(` +f(): void{ + throw new Error('Method not implemented.'); +} +`); diff --git a/tests/cases/fourslash/codeFixClassExtendsAbstractExpressionWithTypeArgs.ts b/tests/cases/fourslash/codeFixClassExtendsAbstractExpressionWithTypeArgs.ts index dfb91841333..5796bea6fb4 100644 --- a/tests/cases/fourslash/codeFixClassExtendsAbstractExpressionWithTypeArgs.ts +++ b/tests/cases/fourslash/codeFixClassExtendsAbstractExpressionWithTypeArgs.ts @@ -11,4 +11,4 @@ verify.rangeAfterCodeFix(` a: string | number; -`); +`); \ No newline at end of file