TypeScript/tests/cases/compiler/doNotEmitDetachedCommentsAtStartOfFunctionBody.ts

34 lines
416 B
TypeScript

// @removeComments: true
function foo1() {
// Single line comment
return 42;
}
function foo2() {
/*
multi line
comment
*/
return 42;
}
function foo3() {
// Single line comment with more than one blank line
return 42;
}
function foo4() {
/*
multi line comment with more than one blank line
*/
return 42;
}