oxc/crates/oxc_isolated_declarations/tests/fixtures/infer-expression.ts
overlookmotel dc924892cc test: add trailing line breaks to conformance fixtures (#5541)
Continuation of #5537. Ensure all conformance fixture files have a trailing line break.
2024-09-06 12:55:17 +00:00

18 lines
284 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