mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
52 lines
728 B
TypeScript
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;
|
|
}
|