TypeScript/tests/cases/fourslash/convertFunctionToEs6Class_commentOnVariableDeclaration.ts

16 lines
291 B
TypeScript

/// <reference path='fourslash.ts' />
// @allowJs: true
// @Filename: /a.js
/////** Doc */
////const C = function() { this.x = 0; }
verify.codeFix({
description: "Convert function to an ES2015 class",
newFileContent:
`/** Doc */
class C {
constructor() { this.x = 0; }
}`,
});