mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
18 lines
No EOL
283 B
TypeScript
18 lines
No EOL
283 B
TypeScript
// Correct
|
|
|
|
// ParenthesizedExpression
|
|
const n = (0);
|
|
const s = ("");
|
|
const t = (``);
|
|
const b = (true);
|
|
|
|
// UnaryExpression
|
|
let unaryA = +12;
|
|
const unaryB = -1_2n;
|
|
|
|
// Incorrect
|
|
|
|
// UnaryExpression
|
|
const unaryC = +"str"
|
|
const unaryD = typeof "str"
|
|
const unaryE = {E: -"str"} as const |