【发布时间】:2023-01-10 11:59:00
【问题描述】:
例如,以下 ReScript 无法编译:
%%raw(`
const s = 'world';
const msg = `Hello ${s}!`;
console.log(s);
`)
ReScript 编译器 (10.0.1) 在 Hello 之前的反引号处出错:
Syntax error!
3 | const msg = `Hello ${s}!`;
consecutive statements on a line must be separated by ';' or a newline
【问题讨论】:
标签: template-literals rescript