25 lines
522 B
TypeScript
25 lines
522 B
TypeScript
//// [commentLeadingCloseBrace.ts]
|
|
declare function commentedParameters(...args): any;
|
|
|
|
function ifelse() {
|
|
if (commentedParameters(1, 2)) {
|
|
/*comment1*/
|
|
commentedParameters(3, 4);
|
|
/*comment2*/
|
|
} else {
|
|
commentedParameters(5, 6);
|
|
}
|
|
}
|
|
|
|
//// [commentLeadingCloseBrace.js]
|
|
function ifelse() {
|
|
if (commentedParameters(1, 2)) {
|
|
/*comment1*/
|
|
commentedParameters(3, 4);
|
|
/*comment2*/
|
|
}
|
|
else {
|
|
commentedParameters(5, 6);
|
|
}
|
|
}
|