TypeScript/tests/cases/fourslash/codeFixClassImplementInterfaceNoBody.ts
Nathan Shively-Sanders 66b5c47854
Fix crash in codefixes re: braces of class body (#36087)
* Fix crash in codefixes re: braces of class body

Previously, the code that finds braces of a class body assumed they were
always there. This is not always the case, so this code checks for
that.

* fix semicolon lint
2020-01-09 08:46:00 -08:00

11 lines
240 B
TypeScript

/// <reference path="fourslash.ts" />
//// interface I {
//// m(): void
//// }
//// class C/*c*/ implements I
verify.errorExistsBeforeMarker("c")
goTo.marker("c")
verify.codeFixAvailable([{ "description": "Implement interface 'I'" }])