mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-19 10:41:56 -05:00
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user