parser_misc Summary: AST Parsed : 25/25 (100.00%) Positive Passed: 25/25 (100.00%) Negative Passed: 14/14 (100.00%) × Unexpected token ╭─[fail/oxc-169.js:2:1] 1 │ 1<(V=82< ╰──── × Unexpected token ╭─[fail/oxc-1942-1.ts:2:8] 1 │ class Foo { 2 │ get x: () => { · ─ 3 │ return 5; ╰──── × Unexpected token ╭─[fail/oxc-1942-2.ts:2:8] 1 │ class Foo { 2 │ set x: (v: number) => {} · ─ 3 │ } ╰──── × A class name is required. ╭─[fail/oxc-2144.js:1:1] 1 │ class {} · ───── 2 │ export class {} ╰──── × A class name is required. ╭─[fail/oxc-2144.js:2:8] 1 │ class {} 2 │ export class {} · ───── ╰──── × Unexpected `?` operator ╭─[fail/oxc-2253.ts:1:8] 1 │ const a? = "A" · ▲ 2 │ const [b]? = ["B"] ╰──── × Unexpected `?` operator ╭─[fail/oxc-2253.ts:2:10] 1 │ const a? = "A" 2 │ const [b]? = ["B"] · ▲ 3 │ const { c }? = { c: "C" } ╰──── × Unexpected `?` operator ╭─[fail/oxc-2253.ts:3:12] 2 │ const [b]? = ["B"] 3 │ const { c }? = { c: "C" } · ▲ 4 │ ╰──── × Unexpected `?` operator ╭─[fail/oxc-2253.ts:5:13] 4 │ 5 │ const d ? = "A" · ▲ 6 │ const [e, f] ? = ["B"] ╰──── × Unexpected `?` operator ╭─[fail/oxc-2253.ts:6:19] 5 │ const d ? = "A" 6 │ const [e, f] ? = ["B"] · ▲ 7 │ const { g, h } ? = { c: "C" } ╰──── × Unexpected `?` operator ╭─[fail/oxc-2253.ts:7:22] 6 │ const [e, f] ? = ["B"] 7 │ const { g, h } ? = { c: "C" } · ▲ ╰──── × Empty parenthesized expression ╭─[fail/oxc-232.js:1:5] 1 │ x = (/* a */) · ───────── ╰──── × Unexpected token ╭─[fail/oxc-2394.ts:20:22] 19 │ export type LocalInterface = 20 │ & import("pkg", {"resolution-mode": "require"}).RequireInterface · ───────────────── 21 │ & import("pkg", {"resolution-mode": "import"}).ImportInterface; ╰──── × Unexpected token ╭─[fail/oxc-3320.tsx:1:8] 1 │ m< $<{3[ $<{3[ $<{3[ m< m$<{3[ m< mm< $<{3[ $<{3[ $<{3[ m< m$<{3[ m< m$<{3[ $<{3[ m< m$<{3[ · ─ ╰──── × Expected corresponding JSX closing tag for 'Apple'. ╭─[fail/oxc-3528.jsx:1:10] 1 │ let a = ; · ───── ────── 2 │ ╰──── × Expected corresponding JSX closing tag for 'Apple:Orange'. ╭─[fail/oxc-3528.jsx:3:10] 2 │ 3 │ let b = ; · ──────────── ────── 4 │ ╰──── × Expected corresponding JSX closing tag for 'Apple.Orange'. ╭─[fail/oxc-3528.jsx:5:10] 4 │ 5 │ let c = ; · ──────────── ────── ╰──── × 'readonly' modifier cannot be used here. ╭─[fail/oxc-3948.ts:2:5] 1 │ const x = { 2 │ readonly foo() { · ──────── 3 │ ╰──── × 'public' modifier cannot be used here. ╭─[fail/oxc-3948.ts:5:5] 4 │ }, 5 │ public readonly async bar() { · ────── 6 │ ╰──── × 'readonly' modifier cannot be used here. ╭─[fail/oxc-3948.ts:5:12] 4 │ }, 5 │ public readonly async bar() { · ──────── 6 │ ╰──── × 'public' modifier cannot be used here. ╭─[fail/oxc-3948.ts:8:5] 7 │ }, 8 │ public x: 1, · ────── 9 │ } ╰──── × Expected a semicolon or an implicit semicolon after a statement, but found none ╭─[fail/oxc-4111-1.js:1:35] 1 │ funtransientction as longciiConÞr>ol(cde) { · ▲ ╰──── help: Try insert a semicolon here × Expected a semicolon or an implicit semicolon after a statement, but found none ╭─[fail/oxc-4212-1.ts:1:16] 1 │ class a { const enum b(); } · ▲ ╰──── help: Try insert a semicolon here × TS(1164): Computed property names are not allowed in enums. ╭─[fail/oxc-4449.ts:2:11] 1 │ // should fail 2 │ enum A { [foo] } // Computed property names are not allowed in enums · ─── 3 │ enum B { [1] } // An enum member cannot have a numeric name. ╰──── × TS(2452): An enum member cannot have a numeric name. ╭─[fail/oxc-4449.ts:3:11] 2 │ enum A { [foo] } // Computed property names are not allowed in enums 3 │ enum B { [1] } // An enum member cannot have a numeric name. · ─ 4 │ enum C { 1 } // An enum member cannot have a numeric name. ╰──── × TS(2452): An enum member cannot have a numeric name. ╭─[fail/oxc-4449.ts:4:10] 3 │ enum B { [1] } // An enum member cannot have a numeric name. 4 │ enum C { 1 } // An enum member cannot have a numeric name. · ─ 5 │ enum D { [`test${foo}`] } // Computed property names are not allowed in enums. ╰──── × TS(1164): Computed property names are not allowed in enums. ╭─[fail/oxc-4449.ts:5:11] 4 │ enum C { 1 } // An enum member cannot have a numeric name. 5 │ enum D { [`test${foo}`] } // Computed property names are not allowed in enums. · ──────────── 6 │ enum E { `baz` = 2 } // Enum member expected. ╰──── × Cannot assign to this expression ╭─[fail/oxc-4449.ts:6:10] 5 │ enum D { [`test${foo}`] } // Computed property names are not allowed in enums. 6 │ enum E { `baz` = 2 } // Enum member expected. · ───────── 7 │ enum F { ['baz' + 'baz'] } // Computed property names are not allowed in enums. ╰──── × TS(1164): Computed property names are not allowed in enums. ╭─[fail/oxc-4449.ts:7:11] 6 │ enum E { `baz` = 2 } // Enum member expected. 7 │ enum F { ['baz' + 'baz'] } // Computed property names are not allowed in enums. · ───────────── ╰──── × The keyword 'let' is reserved ╭─[fail/oxc.js:1:1] 1 │ let.a = 1; · ─── 2 │ let()[a] = 1; ╰──── × The keyword 'let' is reserved ╭─[fail/oxc.js:2:1] 1 │ let.a = 1; 2 │ let()[a] = 1; · ─── ╰────