mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
commit
0acd860d22
@ -7879,7 +7879,7 @@ const _super = (function (geti, seti) {
|
||||
node.parent &&
|
||||
node.parent.kind === SyntaxKind.ArrowFunction &&
|
||||
(<ArrowFunction>node.parent).body === node &&
|
||||
compilerOptions.target <= ScriptTarget.ES5) {
|
||||
languageVersion <= ScriptTarget.ES5) {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -0,0 +1,14 @@
|
||||
//// [singleLineCommentInConciseArrowFunctionES3.ts]
|
||||
function test() {
|
||||
return () =>
|
||||
// some comments here;
|
||||
123;
|
||||
}
|
||||
|
||||
//// [singleLineCommentInConciseArrowFunctionES3.js]
|
||||
function test() {
|
||||
return function () {
|
||||
// some comments here;
|
||||
return 123;
|
||||
};
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
=== tests/cases/compiler/singleLineCommentInConciseArrowFunctionES3.ts ===
|
||||
function test() {
|
||||
>test : Symbol(test, Decl(singleLineCommentInConciseArrowFunctionES3.ts, 0, 0))
|
||||
|
||||
return () =>
|
||||
// some comments here;
|
||||
123;
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
=== tests/cases/compiler/singleLineCommentInConciseArrowFunctionES3.ts ===
|
||||
function test() {
|
||||
>test : () => () => number
|
||||
|
||||
return () =>
|
||||
>() => // some comments here; 123 : () => number
|
||||
|
||||
// some comments here;
|
||||
123;
|
||||
>123 : number
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
function test() {
|
||||
return () =>
|
||||
// some comments here;
|
||||
123;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user