Files
tsgo/testdata/baselines/reference/submodule/compiler/doNotEmitDetachedCommentsAtStartOfFunctionBody.js

52 lines
728 B
TypeScript

//// [tests/cases/compiler/doNotEmitDetachedCommentsAtStartOfFunctionBody.ts] ////
//// [doNotEmitDetachedCommentsAtStartOfFunctionBody.ts]
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;
}
//// [doNotEmitDetachedCommentsAtStartOfFunctionBody.js]
"use strict";
function foo1() {
return 42;
}
function foo2() {
return 42;
}
function foo3() {
return 42;
}
function foo4() {
return 42;
}