mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
27 lines
425 B
TypeScript
27 lines
425 B
TypeScript
//// [tests/cases/conformance/es6/templates/templateStringWithCommentsInArrowFunction.ts] ////
|
|
|
|
//// [templateStringWithCommentsInArrowFunction.ts]
|
|
const a = 1;
|
|
const f1 = () =>
|
|
`${
|
|
// a
|
|
a
|
|
}a`;
|
|
|
|
const f2 = () =>
|
|
`${
|
|
// a
|
|
a
|
|
}`;
|
|
|
|
|
|
//// [templateStringWithCommentsInArrowFunction.js]
|
|
"use strict";
|
|
const a = 1;
|
|
const f1 = () => `${
|
|
// a
|
|
a}a`;
|
|
const f2 = () => `${
|
|
// a
|
|
a}`;
|