mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
1916f31135
The parser accepted `class C { readonly constructor() {} }` and silently discarded `readonly`. Report TS1024 on the modifier instead, matching TypeScript and the existing validation for ordinary methods.
5030 lines
188 KiB
Plaintext
5030 lines
188 KiB
Plaintext
parser_misc Summary:
|
||
AST Parsed : 109/109 (100.00%)
|
||
Positive Passed: 109/109 (100.00%)
|
||
Negative Passed: 222/222 (100.00%)
|
||
|
||
× Cannot assign to 'arguments' in strict mode
|
||
╭─[misc/fail/arguments-eval-ambient.ts:2:13]
|
||
1 │ export {};
|
||
2 │ declare var arguments: unknown;
|
||
· ─────────
|
||
3 │ declare const eval: unknown;
|
||
╰────
|
||
note: Modules are always strict mode code
|
||
|
||
× Cannot assign to 'eval' in strict mode
|
||
╭─[misc/fail/arguments-eval-ambient.ts:3:15]
|
||
2 │ declare var arguments: unknown;
|
||
3 │ declare const eval: unknown;
|
||
· ────
|
||
╰────
|
||
note: Modules are always strict mode code
|
||
|
||
× Cannot assign to 'arguments' in strict mode
|
||
╭─[misc/fail/arguments-eval.ts:1:10]
|
||
1 │ function arguments() {}
|
||
· ─────────
|
||
2 │ function eval() {}
|
||
╰────
|
||
note: Modules are always strict mode code
|
||
|
||
× Cannot assign to 'eval' in strict mode
|
||
╭─[misc/fail/arguments-eval.ts:2:10]
|
||
1 │ function arguments() {}
|
||
2 │ function eval() {}
|
||
· ────
|
||
3 │
|
||
╰────
|
||
note: Modules are always strict mode code
|
||
|
||
× Cannot assign to 'arguments' in strict mode
|
||
╭─[misc/fail/arguments-eval.ts:4:16]
|
||
3 │
|
||
4 │ function foo({ arguments }) {}
|
||
· ─────────
|
||
5 │ function foo2([arguments]) {}
|
||
╰────
|
||
note: Modules are always strict mode code
|
||
|
||
× Cannot assign to 'arguments' in strict mode
|
||
╭─[misc/fail/arguments-eval.ts:5:16]
|
||
4 │ function foo({ arguments }) {}
|
||
5 │ function foo2([arguments]) {}
|
||
· ─────────
|
||
6 │ function foo3({ eval }) {}
|
||
╰────
|
||
note: Modules are always strict mode code
|
||
|
||
× Cannot assign to 'eval' in strict mode
|
||
╭─[misc/fail/arguments-eval.ts:6:17]
|
||
5 │ function foo2([arguments]) {}
|
||
6 │ function foo3({ eval }) {}
|
||
· ────
|
||
7 │ function foo4([eval]) {}
|
||
╰────
|
||
note: Modules are always strict mode code
|
||
|
||
× Cannot assign to 'eval' in strict mode
|
||
╭─[misc/fail/arguments-eval.ts:7:16]
|
||
6 │ function foo3({ eval }) {}
|
||
7 │ function foo4([eval]) {}
|
||
· ────
|
||
8 │ declare function foo5({ arguments }: { arguments: number }): void;
|
||
╰────
|
||
note: Modules are always strict mode code
|
||
|
||
× Cannot assign to 'arguments' in strict mode
|
||
╭─[misc/fail/arguments-eval.ts:8:25]
|
||
7 │ function foo4([eval]) {}
|
||
8 │ declare function foo5({ arguments }: { arguments: number }): void;
|
||
· ─────────
|
||
9 │ declare function foo6([eval]: [number]): void;
|
||
╰────
|
||
note: Modules are always strict mode code
|
||
|
||
× Cannot assign to 'eval' in strict mode
|
||
╭─[misc/fail/arguments-eval.ts:9:24]
|
||
8 │ declare function foo5({ arguments }: { arguments: number }): void;
|
||
9 │ declare function foo6([eval]: [number]): void;
|
||
· ────
|
||
10 │ declare function foo7([arguments = 0]: [number?]): void;
|
||
╰────
|
||
note: Modules are always strict mode code
|
||
|
||
× Cannot assign to 'arguments' in strict mode
|
||
╭─[misc/fail/arguments-eval.ts:10:24]
|
||
9 │ declare function foo6([eval]: [number]): void;
|
||
10 │ declare function foo7([arguments = 0]: [number?]): void;
|
||
· ─────────
|
||
11 │ declare function foo8({ ...arguments }: object): void;
|
||
╰────
|
||
note: Modules are always strict mode code
|
||
|
||
× Cannot assign to 'arguments' in strict mode
|
||
╭─[misc/fail/arguments-eval.ts:11:28]
|
||
10 │ declare function foo7([arguments = 0]: [number?]): void;
|
||
11 │ declare function foo8({ ...arguments }: object): void;
|
||
· ─────────
|
||
12 │ declare function foo9([...eval]: unknown[]): void;
|
||
╰────
|
||
note: Modules are always strict mode code
|
||
|
||
× Cannot assign to 'eval' in strict mode
|
||
╭─[misc/fail/arguments-eval.ts:12:27]
|
||
11 │ declare function foo8({ ...arguments }: object): void;
|
||
12 │ declare function foo9([...eval]: unknown[]): void;
|
||
· ────
|
||
13 │ declare class C {
|
||
╰────
|
||
note: Modules are always strict mode code
|
||
|
||
× Cannot assign to 'eval' in strict mode
|
||
╭─[misc/fail/arguments-eval.ts:14:12]
|
||
13 │ declare class C {
|
||
14 │ method({ eval }: { eval: number }): void;
|
||
· ────
|
||
15 │ constructor([arguments]: [number]);
|
||
╰────
|
||
note: Classes are always strict mode code
|
||
|
||
× Cannot assign to 'arguments' in strict mode
|
||
╭─[misc/fail/arguments-eval.ts:15:16]
|
||
14 │ method({ eval }: { eval: number }): void;
|
||
15 │ constructor([arguments]: [number]);
|
||
· ─────────
|
||
16 │ }
|
||
╰────
|
||
note: Classes are always strict mode code
|
||
|
||
× Only a single declaration is allowed in a `for...in` statement
|
||
╭─[misc/fail/arrow-block-body-in-context.js:1:6]
|
||
1 │ for (var f = () => {}, value = a in b;;);
|
||
· ───────────────────────────
|
||
╰────
|
||
|
||
× Expected `)` but found `;`
|
||
╭─[misc/fail/arrow-block-body-in-context.js:1:38]
|
||
1 │ for (var f = () => {}, value = a in b;;);
|
||
· ┬ ┬
|
||
· │ ╰── `)` expected
|
||
· ╰── Opened here
|
||
╰────
|
||
|
||
× Expected `)` but found `;`
|
||
╭─[misc/fail/arrow-expression-body-in.js:1:26]
|
||
1 │ for (var f = () => a in b;;);
|
||
· ┬ ┬
|
||
· │ ╰── `)` expected
|
||
· ╰── Opened here
|
||
╰────
|
||
|
||
× Illegal break statement
|
||
╭─[misc/fail/arrow-function-jumps.js:1:25]
|
||
1 │ while (true) { (() => { break; }); }
|
||
· ──────
|
||
2 │
|
||
╰────
|
||
help: A `break` statement can only be used within an enclosing iteration or switch statement.
|
||
|
||
× Jump target cannot cross function boundary.
|
||
╭─[misc/fail/arrow-function-jumps.js:3:38]
|
||
2 │
|
||
3 │ outer: while (true) { (() => { break outer; }); }
|
||
· ─────
|
||
4 │
|
||
╰────
|
||
|
||
× Illegal continue statement: no surrounding iteration statement
|
||
╭─[misc/fail/arrow-function-jumps.js:5:25]
|
||
4 │
|
||
5 │ while (true) { (() => { continue; }); }
|
||
· ─────────
|
||
6 │
|
||
╰────
|
||
help: A `continue` statement can only be used within an enclosing `for`, `while` or `do while`
|
||
|
||
× Jump target cannot cross function boundary.
|
||
╭─[misc/fail/arrow-function-jumps.js:7:41]
|
||
6 │
|
||
7 │ outer: while (true) { (() => { continue outer; }); }
|
||
· ─────
|
||
╰────
|
||
|
||
× 'async' modifier cannot be used here.
|
||
╭─[misc/fail/async-field.js:1:11]
|
||
1 │ class C { async x; }
|
||
· ─────
|
||
╰────
|
||
|
||
× 'async' modifier cannot be used here.
|
||
╭─[misc/fail/async-field.ts:1:11]
|
||
1 │ class C { async x; }
|
||
· ─────
|
||
╰────
|
||
|
||
× `await` is only allowed within async functions and at the top levels of modules
|
||
╭─[misc/fail/auto-accessor-initializer-await.js:3:18]
|
||
2 │ class C {
|
||
3 │ accessor x = await 1;
|
||
· ─────
|
||
4 │ }
|
||
╰────
|
||
help: Either remove this `await` or add the `async` keyword to the enclosing function
|
||
|
||
× A 'yield' expression is only allowed in a generator body.
|
||
╭─[misc/fail/auto-accessor-initializer-yield.js:3:18]
|
||
2 │ class C {
|
||
3 │ accessor x = yield 1;
|
||
· ─────
|
||
4 │ }
|
||
╰────
|
||
help: Either remove this `yield` or change the enclosing function to a generator function (`function*`)
|
||
|
||
× Cannot use await in class static initialization block
|
||
╭─[misc/fail/await-expr-in-block-in-class-static-block.mjs:4:7]
|
||
3 │ {
|
||
4 │ await foo;
|
||
· ─────
|
||
5 │ }
|
||
╰────
|
||
|
||
× `await` is only allowed within async functions and at the top levels of modules
|
||
╭─[misc/fail/await-using-context.js:2:3]
|
||
1 │ function f() {
|
||
2 │ await using x = null;
|
||
· ─────
|
||
3 │ for (await using y = null; ; ) {}
|
||
╰────
|
||
help: Either remove this `await` or add the `async` keyword to the enclosing function
|
||
|
||
× `await` is only allowed within async functions and at the top levels of modules
|
||
╭─[misc/fail/await-using-context.js:3:8]
|
||
2 │ await using x = null;
|
||
3 │ for (await using y = null; ; ) {}
|
||
· ─────
|
||
4 │ for (await using z of []) {}
|
||
╰────
|
||
help: Either remove this `await` or add the `async` keyword to the enclosing function
|
||
|
||
× `await` is only allowed within async functions and at the top levels of modules
|
||
╭─[misc/fail/await-using-context.js:4:8]
|
||
3 │ for (await using y = null; ; ) {}
|
||
4 │ for (await using z of []) {}
|
||
· ─────
|
||
5 │ }
|
||
╰────
|
||
help: Either remove this `await` or add the `async` keyword to the enclosing function
|
||
|
||
× `await` is only allowed within async functions and at the top levels of modules
|
||
╭─[misc/fail/await-using-context.js:8:3]
|
||
7 │ function* g() {
|
||
8 │ await using x = null;
|
||
· ─────
|
||
9 │ for (await using y = null; ; ) {}
|
||
╰────
|
||
help: Either remove this `await` or add the `async` keyword to the enclosing function
|
||
|
||
× `await` is only allowed within async functions and at the top levels of modules
|
||
╭─[misc/fail/await-using-context.js:9:8]
|
||
8 │ await using x = null;
|
||
9 │ for (await using y = null; ; ) {}
|
||
· ─────
|
||
10 │ for (await using z of []) {}
|
||
╰────
|
||
help: Either remove this `await` or add the `async` keyword to the enclosing function
|
||
|
||
× `await` is only allowed within async functions and at the top levels of modules
|
||
╭─[misc/fail/await-using-context.js:10:8]
|
||
9 │ for (await using y = null; ; ) {}
|
||
10 │ for (await using z of []) {}
|
||
· ─────
|
||
11 │ }
|
||
╰────
|
||
help: Either remove this `await` or add the `async` keyword to the enclosing function
|
||
|
||
× Expected `;` but found `,`
|
||
╭─[misc/fail/class-field-comma-expression.js:1:16]
|
||
1 │ class C { x = a,b }
|
||
· ┬
|
||
· ╰── `;` expected
|
||
╰────
|
||
|
||
× Logical expressions and coalesce expressions cannot be mixed
|
||
╭─[misc/fail/coalesce-partial-parens-final-left-and.js:1:1]
|
||
1 │ a && b ?? (c);
|
||
· ─────────────
|
||
╰────
|
||
help: Wrap either expression by parentheses
|
||
|
||
× Logical expressions and coalesce expressions cannot be mixed
|
||
╭─[misc/fail/coalesce-partial-parens-final-left-or.js:1:1]
|
||
1 │ a || b ?? (c);
|
||
· ─────────────
|
||
╰────
|
||
help: Wrap either expression by parentheses
|
||
|
||
× Logical expressions and coalesce expressions cannot be mixed
|
||
╭─[misc/fail/coalesce-partial-parens-final-right-and.js:1:1]
|
||
1 │ a ?? b && (c);
|
||
· ─────────────
|
||
╰────
|
||
help: Wrap either expression by parentheses
|
||
|
||
× Logical expressions and coalesce expressions cannot be mixed
|
||
╭─[misc/fail/coalesce-partial-parens-final-right-or.js:1:1]
|
||
1 │ a ?? b || (c);
|
||
· ─────────────
|
||
╰────
|
||
help: Wrap either expression by parentheses
|
||
|
||
× Logical expressions and coalesce expressions cannot be mixed
|
||
╭─[misc/fail/coalesce-partial-parens-left-and.js:1:1]
|
||
1 │ (a) && b ?? c;
|
||
· ─────────────
|
||
╰────
|
||
help: Wrap either expression by parentheses
|
||
|
||
× Logical expressions and coalesce expressions cannot be mixed
|
||
╭─[misc/fail/coalesce-partial-parens-left-or.js:1:1]
|
||
1 │ (a) || b ?? c;
|
||
· ─────────────
|
||
╰────
|
||
help: Wrap either expression by parentheses
|
||
|
||
× Logical expressions and coalesce expressions cannot be mixed
|
||
╭─[misc/fail/coalesce-partial-parens-right-and.js:1:1]
|
||
1 │ a ?? (b) && c;
|
||
· ─────────────
|
||
╰────
|
||
help: Wrap either expression by parentheses
|
||
|
||
× Logical expressions and coalesce expressions cannot be mixed
|
||
╭─[misc/fail/coalesce-partial-parens-right-or.js:1:1]
|
||
1 │ a ?? (b) || c;
|
||
· ─────────────
|
||
╰────
|
||
help: Wrap either expression by parentheses
|
||
|
||
× Cannot use export statement outside a module
|
||
╭─[misc/fail/commonjs-export-statement.cjs:2:1]
|
||
1 │ // CommonJS does NOT allow export statements (use module.exports instead)
|
||
2 │ export const foo = 1;
|
||
· ──────
|
||
╰────
|
||
|
||
× Unexpected import.meta expression
|
||
╭─[misc/fail/commonjs-import-meta.cjs:2:1]
|
||
1 │ // CommonJS does NOT allow import.meta (only ES modules do)
|
||
2 │ import.meta;
|
||
· ───────────
|
||
╰────
|
||
help: import.meta is only allowed in module code
|
||
|
||
× Cannot use import statement outside a module
|
||
╭─[misc/fail/commonjs-import-statement.cjs:2:1]
|
||
1 │ // CommonJS does NOT allow import statements (use require instead)
|
||
2 │ import foo from 'foo';
|
||
· ──────
|
||
╰────
|
||
|
||
× `await` is only allowed within async functions and at the top levels of modules
|
||
╭─[misc/fail/commonjs-top-level-await.cjs:2:1]
|
||
1 │ // CommonJS does NOT allow top-level await (only ES modules do)
|
||
2 │ await Promise.resolve();
|
||
· ─────
|
||
╰────
|
||
help: Either remove this `await` or add the `async` keyword to the enclosing function
|
||
|
||
× TS(1093): Type annotation cannot appear on a constructor declaration.
|
||
╭─[misc/fail/constructor-overload-return-type.ts:2:18]
|
||
1 │ class C {
|
||
2 │ constructor(): C;
|
||
· ─
|
||
3 │ constructor() {}
|
||
╰────
|
||
|
||
× Expected `)` but found `:`
|
||
╭─[misc/fail/contextual-binding-lookahead-function-reserved.ts:1:15]
|
||
1 │ let fn: (break: number) => void;
|
||
· ┬
|
||
· ╰── `)` expected
|
||
╰────
|
||
|
||
× Cannot use `yield` as an identifier in a generator context
|
||
╭─[misc/fail/contextual-binding-lookahead-index-context.ts:2:18]
|
||
1 │ function* generatorInterface() {
|
||
2 │ interface I { [yield: string]: unknown }
|
||
· ─────
|
||
3 │ }
|
||
╰────
|
||
|
||
× Cannot use `yield` as an identifier in a generator context
|
||
╭─[misc/fail/contextual-binding-lookahead-index-context.ts:5:14]
|
||
4 │ function* generatorClass() {
|
||
5 │ class C { [yield: string]: unknown }
|
||
· ─────
|
||
6 │ }
|
||
╰────
|
||
|
||
× Cannot use `await` as an identifier in an async context
|
||
╭─[misc/fail/contextual-binding-lookahead-index-context.ts:8:14]
|
||
7 │ async function asyncClass() {
|
||
8 │ class C { [await: string]: unknown }
|
||
· ─────
|
||
9 │ }
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/contextual-binding-lookahead-index-modifier.ts:1:23]
|
||
1 │ interface I { [public await: string]: unknown }
|
||
· ─────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/contextual-binding-lookahead-index-reserved.ts:1:16]
|
||
1 │ interface I { [break: string]: unknown }
|
||
· ─────
|
||
╰────
|
||
|
||
× A `continue` statement can only jump to a label of an enclosing `for`, `while` or `do while` statement.
|
||
╭─[misc/fail/continue-label-chain-non-iteration.js:1:1]
|
||
1 │ a: b: {
|
||
· ┬
|
||
· ╰── This is an non-iteration statement
|
||
2 │ continue a;
|
||
· ┬
|
||
· ╰── for this label
|
||
3 │ }
|
||
╰────
|
||
|
||
× Encountered diff marker
|
||
╭─[misc/fail/diff-markers.js:10:1]
|
||
9 │ function test() {
|
||
10 │ <<<<<<< HEAD
|
||
· ───┬───
|
||
· ╰── between this marker and `=======` is the code that we're merging into
|
||
11 │ const x = 1;
|
||
12 │ =======
|
||
· ───┬───
|
||
· ╰── between this marker and `>>>>>>>` is the incoming code
|
||
13 │ const y = 2;
|
||
14 │ >>>>>>> branch
|
||
· ───┬───
|
||
· ╰── this marker concludes the conflict region
|
||
15 │ return x;
|
||
╰────
|
||
help: Conflict markers indicate that a merge was started but could not be completed due to merge conflicts.
|
||
To resolve a conflict, keep only the code you want and then delete the lines containing conflict markers.
|
||
If you're having merge conflicts after pulling new code, the top section is the code you already had and the bottom section is the remote code.
|
||
If you're in the middle of a rebase, the top section is the code being rebased onto and the bottom section is the code coming from the current commit being rebased.
|
||
If you have nested conflicts, resolve the outermost conflict first.
|
||
|
||
× Identifier `#x` has already been declared
|
||
╭─[misc/fail/duplicate-private-declarations.js:1:24]
|
||
1 │ class DuplicateField { #x; x; #x; }
|
||
· ─┬ ─┬
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `#x` has already been declared here
|
||
2 │
|
||
╰────
|
||
|
||
× Identifier `#x` has already been declared
|
||
╭─[misc/fail/duplicate-private-declarations.js:3:29]
|
||
2 │
|
||
3 │ class DuplicateGetter { get #x() {} set #x(value) {} get #x() {} }
|
||
· ─┬ ─┬
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `#x` has already been declared here
|
||
4 │
|
||
╰────
|
||
|
||
× Identifier `#x` has already been declared
|
||
╭─[misc/fail/duplicate-private-declarations.js:5:29]
|
||
4 │
|
||
5 │ class DuplicateSetter { set #x(value) {} get #x() {} set #x(value) {} }
|
||
· ─┬ ─┬
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `#x` has already been declared here
|
||
╰────
|
||
|
||
× '0'-prefixed octal literals and octal escape sequences are deprecated
|
||
╭─[misc/fail/escape-00.js:1:25]
|
||
1 │ export const escape00 = "\00";
|
||
· ─────
|
||
╰────
|
||
help: for octal literals use the '0o' prefix instead
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-import-phase.js:1:8]
|
||
1 │ import s\u006furce wasm from "m";
|
||
· ───────────
|
||
2 │ import d\u0065fer * as ns from "m";
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-import-phase.js:2:8]
|
||
1 │ import s\u006furce wasm from "m";
|
||
2 │ import d\u0065fer * as ns from "m";
|
||
· ──────────
|
||
3 │ import source fr\u006fm "m";
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-import-phase.js:3:15]
|
||
2 │ import d\u0065fer * as ns from "m";
|
||
3 │ import source fr\u006fm "m";
|
||
· ─────────
|
||
4 │ import s\u006furce from from "m";
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-import-phase.js:4:8]
|
||
3 │ import source fr\u006fm "m";
|
||
4 │ import s\u006furce from from "m";
|
||
· ───────────
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-type-import.ts:1:8]
|
||
1 │ import t\u0079pe Foo = require("m");
|
||
· ─────────
|
||
2 │ import t\u0079pe { x } from "m";
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-type-import.ts:2:8]
|
||
1 │ import t\u0079pe Foo = require("m");
|
||
2 │ import t\u0079pe { x } from "m";
|
||
· ─────────
|
||
3 │ import t\u0079pe * as ns from "m";
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-type-import.ts:3:8]
|
||
2 │ import t\u0079pe { x } from "m";
|
||
3 │ import t\u0079pe * as ns from "m";
|
||
· ─────────
|
||
4 │ import { t\u0079pe Bar } from "m";
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-type-import.ts:4:10]
|
||
3 │ import t\u0079pe * as ns from "m";
|
||
4 │ import { t\u0079pe Bar } from "m";
|
||
· ─────────
|
||
5 │ import t\u0079pe fr\u006fm "m";
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-type-import.ts:5:18]
|
||
4 │ import { t\u0079pe Bar } from "m";
|
||
5 │ import t\u0079pe fr\u006fm "m";
|
||
· ─────────
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-type-specifier.ts:1:10]
|
||
1 │ import { t\u0079pe as as x } from "m";
|
||
· ─────────
|
||
2 │ export { t\u0079pe Foo };
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-type-specifier.ts:2:10]
|
||
1 │ import { t\u0079pe as as x } from "m";
|
||
2 │ export { t\u0079pe Foo };
|
||
· ─────────
|
||
3 │ export { t\u0079pe as };
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-type-specifier.ts:3:10]
|
||
2 │ export { t\u0079pe Foo };
|
||
3 │ export { t\u0079pe as };
|
||
· ─────────
|
||
4 │ export { t\u0079pe as as x };
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-type-specifier.ts:4:10]
|
||
3 │ export { t\u0079pe as };
|
||
4 │ export { t\u0079pe as as x };
|
||
· ─────────
|
||
5 │ export { t\u0079pe Foo } from "m";
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-type-specifier.ts:5:10]
|
||
4 │ export { t\u0079pe as as x };
|
||
5 │ export { t\u0079pe Foo } from "m";
|
||
· ─────────
|
||
6 │ export { t\u0079pe as as x } from "m";
|
||
╰────
|
||
|
||
× Keywords cannot contain escape characters
|
||
╭─[misc/fail/escaped-type-specifier.ts:6:10]
|
||
5 │ export { t\u0079pe Foo } from "m";
|
||
6 │ export { t\u0079pe as as x } from "m";
|
||
· ─────────
|
||
╰────
|
||
|
||
× A unary expression with the '-' operator cannot be used as the left operand of an exponentiation expression
|
||
╭─[misc/fail/exponentiation-left-operands.ts:1:1]
|
||
1 │ -value ** 2;
|
||
· ──────
|
||
2 │ await value ** 2;
|
||
╰────
|
||
help: Wrap the unary expression in parentheses to make the precedence explicit
|
||
|
||
× A unary expression with the 'await' operator cannot be used as the left operand of an exponentiation expression
|
||
╭─[misc/fail/exponentiation-left-operands.ts:2:1]
|
||
1 │ -value ** 2;
|
||
2 │ await value ** 2;
|
||
· ───────────
|
||
3 │ <number>value ** 2;
|
||
╰────
|
||
help: Wrap the unary expression in parentheses to make the precedence explicit
|
||
|
||
× A type assertion cannot be used as the left operand of an exponentiation expression
|
||
╭─[misc/fail/exponentiation-left-operands.ts:3:1]
|
||
2 │ await value ** 2;
|
||
3 │ <number>value ** 2;
|
||
· ─────────────
|
||
╰────
|
||
help: Wrap the type assertion in parentheses to make the precedence explicit
|
||
|
||
× TS(2309): An export assignment cannot be used in a module with other exported elements
|
||
╭─[misc/fail/export-equal-with-normal-export.ts:4:1]
|
||
3 │
|
||
4 │ export = 3;
|
||
· ───────────
|
||
5 │ export = 4;
|
||
╰────
|
||
help: If you want to use `export =`, remove other `export`s and put all of them to the right hand value of `export =`. If you want to use `export`s, remove `export =` statement.
|
||
|
||
× TS(2309): An export assignment cannot be used in a module with other exported elements
|
||
╭─[misc/fail/export-equal-with-normal-export.ts:5:1]
|
||
4 │ export = 3;
|
||
5 │ export = 4;
|
||
· ───────────
|
||
╰────
|
||
help: If you want to use `export =`, remove other `export`s and put all of them to the right hand value of `export =`. If you want to use `export`s, remove `export =` statement.
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/export-from-missing-source-eof.js:2:1]
|
||
1 │ export {} from
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/export-from-missing-source-newline.js:2:1]
|
||
1 │ export {} from
|
||
2 │ foo();
|
||
· ───
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/export-from-missing-source-semicolon.js:1:15]
|
||
1 │ export {} from;
|
||
· ─
|
||
╰────
|
||
|
||
× Invalid escape sequence
|
||
╭─[misc/fail/export-from-prior-lexer-error.js:1:11]
|
||
1 │ export { "\xG" as foo } from
|
||
· ──
|
||
╰────
|
||
|
||
× Unterminated multiline comment
|
||
╭─[misc/fail/export-from-unterminated-comment.js:1:16]
|
||
1 │ export {} from /*
|
||
· ───
|
||
╰────
|
||
|
||
× Unterminated string
|
||
╭─[misc/fail/export-from-unterminated-source.js:1:16]
|
||
1 │ export {} from "
|
||
· ──
|
||
╰────
|
||
|
||
× The left-hand side of a for...in statement cannot be an await using declaration.
|
||
╭─[misc/fail/for-await-using-in-initializer.js:2:8]
|
||
1 │ async function f() {
|
||
2 │ for (await using x = a in b;;);
|
||
· ─────────────────
|
||
3 │ }
|
||
╰────
|
||
help: Did you mean to use a for...of statement?
|
||
|
||
× Expected `)` but found `;`
|
||
╭─[misc/fail/for-await-using-in-initializer.js:2:30]
|
||
1 │ async function f() {
|
||
2 │ for (await using x = a in b;;);
|
||
· ┬ ┬
|
||
· │ ╰── `)` expected
|
||
· ╰── Opened here
|
||
3 │ }
|
||
╰────
|
||
|
||
× Expected `;` but found `Identifier`
|
||
╭─[misc/fail/for-escaped-let-declaration.cjs:1:15]
|
||
1 │ for (l\u0065t x = 0;;);
|
||
· ┬
|
||
· ╰── `;` expected
|
||
╰────
|
||
|
||
× Expected `;` but found `Identifier`
|
||
╭─[misc/fail/for-in-escaped-let-declaration.cjs:1:15]
|
||
1 │ for (l\u0065t x in {});
|
||
· ┬
|
||
· ╰── `;` expected
|
||
╰────
|
||
|
||
× Expected `;` but found `Identifier`
|
||
╭─[misc/fail/for-of-escaped-let-declaration.cjs:1:15]
|
||
1 │ for (l\u0065t x of []);
|
||
· ┬
|
||
· ╰── `;` expected
|
||
╰────
|
||
|
||
× The left-hand side of a for...in statement cannot be an using declaration.
|
||
╭─[misc/fail/for-using-in-initializer.js:1:6]
|
||
1 │ for (using x = a in b;;);
|
||
· ───────────
|
||
╰────
|
||
help: Did you mean to use a for...of statement?
|
||
|
||
× Expected `)` but found `;`
|
||
╭─[misc/fail/for-using-in-initializer.js:1:22]
|
||
1 │ for (using x = a in b;;);
|
||
· ┬ ┬
|
||
· │ ╰── `)` expected
|
||
· ╰── Opened here
|
||
╰────
|
||
|
||
× A 'get' accessor must not have any formal parameters.
|
||
╭─[misc/fail/getter-rest-parameter.ts:1:16]
|
||
1 │ class C { get x(...args) {} }
|
||
· ─────────
|
||
2 │ ({ get x(...args) {} });
|
||
╰────
|
||
help: Remove these parameters here
|
||
|
||
× A 'get' accessor must not have any formal parameters.
|
||
╭─[misc/fail/getter-rest-parameter.ts:2:9]
|
||
1 │ class C { get x(...args) {} }
|
||
2 │ ({ get x(...args) {} });
|
||
· ─────────
|
||
3 │ interface I { get x(...args: any[]): string }
|
||
╰────
|
||
help: Remove these parameters here
|
||
|
||
× A 'get' accessor must not have any formal parameters.
|
||
╭─[misc/fail/getter-rest-parameter.ts:3:20]
|
||
2 │ ({ get x(...args) {} });
|
||
3 │ interface I { get x(...args: any[]): string }
|
||
· ────────────────
|
||
4 │ type T = { get x(...args: any[]): string };
|
||
╰────
|
||
help: Remove these parameters here
|
||
|
||
× A 'get' accessor must not have any formal parameters.
|
||
╭─[misc/fail/getter-rest-parameter.ts:4:17]
|
||
3 │ interface I { get x(...args: any[]): string }
|
||
4 │ type T = { get x(...args: any[]): string };
|
||
· ────────────────
|
||
╰────
|
||
help: Remove these parameters here
|
||
|
||
× HTML comments are not allowed in modules
|
||
╭─[misc/fail/html-comment-in-module.mjs:1:1]
|
||
1 │ <!-- comment
|
||
· ────
|
||
╰────
|
||
|
||
× HTML comments are not allowed in modules
|
||
╭─[misc/fail/html-comment-with-esm.js:1:1]
|
||
1 │ <!-- comment
|
||
· ────
|
||
2 │ import foo from "bar";
|
||
╰────
|
||
|
||
× Expected `,` or `]` but found `const`
|
||
╭─[misc/fail/imbalanced-array-expr.js:2:1]
|
||
1 │ const foo = [0, 1
|
||
· ┬
|
||
· ╰── Opened here
|
||
2 │ const bar = 2
|
||
· ──┬──
|
||
· ╰── `,` or `]` expected
|
||
╰────
|
||
|
||
× Expected `,` or `)` but found `const`
|
||
╭─[misc/fail/imbalanced-call-expr.js:2:1]
|
||
1 │ const foo = bar(1
|
||
· ┬
|
||
· ╰── Opened here
|
||
2 │ const bar = 2;
|
||
· ──┬──
|
||
· ╰── `,` or `)` expected
|
||
╰────
|
||
|
||
× Expected `,` or `}` but found `const`
|
||
╭─[misc/fail/imbalanced-enum-expr.ts:4:1]
|
||
1 │ enum Foo {
|
||
· ┬
|
||
· ╰── Opened here
|
||
2 │ A
|
||
3 │
|
||
4 │ const bar = 1;
|
||
· ──┬──
|
||
· ╰── `,` or `}` expected
|
||
╰────
|
||
|
||
× Expected `,` or `}` but found `const`
|
||
╭─[misc/fail/imbalanced-export-expr.js:3:1]
|
||
1 │ export { foo
|
||
· ┬
|
||
· ╰── Opened here
|
||
2 │
|
||
3 │ const foo = ""
|
||
· ──┬──
|
||
· ╰── `,` or `}` expected
|
||
╰────
|
||
|
||
× Expected `,` or `}` but found `;`
|
||
╭─[misc/fail/imbalanced-import-decl-attr.js:1:44]
|
||
1 │ import { } from "foo" with { "type": "json";
|
||
· ┬ ┬
|
||
· │ ╰── `,` or `}` expected
|
||
· ╰── Opened here
|
||
╰────
|
||
|
||
× Expected `,` or `}` but found `string`
|
||
╭─[misc/fail/imbalanced-import-decl.js:1:15]
|
||
1 │ import { from "foo";
|
||
· ┬ ──┬──
|
||
· │ ╰── `,` or `}` expected
|
||
· ╰── Opened here
|
||
╰────
|
||
|
||
× Expected `,` or `]` but found `:`
|
||
╭─[misc/fail/imbalanced-index-signature-decl.ts:2:15]
|
||
1 │ type Foo = {
|
||
2 │ [key: string: number;
|
||
· ┬ ┬
|
||
· │ ╰── `,` or `]` expected
|
||
· ╰── Opened here
|
||
3 │ }
|
||
╰────
|
||
|
||
× Expected `,` or `)` but found `const`
|
||
╭─[misc/fail/imbalanced-new-expr.js:2:1]
|
||
1 │ const foo = new Foo(1
|
||
· ┬
|
||
· ╰── Opened here
|
||
2 │ const bar = 2;
|
||
· ──┬──
|
||
· ╰── `,` or `)` expected
|
||
╰────
|
||
|
||
× Expected `,` or `}` but found `const`
|
||
╭─[misc/fail/imbalanced-object-expr.js:2:1]
|
||
1 │ const foo = { a: 1
|
||
· ┬
|
||
· ╰── Opened here
|
||
2 │ const bar = 2;
|
||
· ──┬──
|
||
· ╰── `,` or `}` expected
|
||
╰────
|
||
|
||
× Expected `,` or `)` but found `;`
|
||
╭─[misc/fail/imbalanced-parenthesized-expr.js:1:30]
|
||
1 │ const foo = (0, eval('1 + 2');
|
||
· ┬ ┬
|
||
· │ ╰── `,` or `)` expected
|
||
· ╰── Opened here
|
||
╰────
|
||
|
||
× Expected `,` or `]` but found `const`
|
||
╭─[misc/fail/imbalanced-tuple-type.ts:3:1]
|
||
1 │ type A = [number
|
||
· ┬
|
||
· ╰── Opened here
|
||
2 │
|
||
3 │ const bar = 1;
|
||
· ──┬──
|
||
· ╰── `,` or `]` expected
|
||
╰────
|
||
|
||
× Expected `from` but found `string`
|
||
╭─[misc/fail/import-defer-without-from.js:1:14]
|
||
1 │ import defer 'module';
|
||
· ────┬───
|
||
· ╰── `from` expected
|
||
╰────
|
||
|
||
× Identifier expected. 'this' is a reserved word that cannot be used here.
|
||
╭─[misc/fail/import-equals-this.ts:2:12]
|
||
1 │ // `this` is not valid in import equals declaration
|
||
2 │ import x = this;
|
||
· ────
|
||
╰────
|
||
|
||
× Expected `from` but found `string`
|
||
╭─[misc/fail/import-from-str.js:1:13]
|
||
1 │ import from 'module';
|
||
· ────┬───
|
||
· ╰── `from` expected
|
||
╰────
|
||
|
||
× Expected `from` but found `Identifier`
|
||
╭─[misc/fail/import-source-non-from.js:1:19]
|
||
1 │ import source foo bar from 'module';
|
||
· ─┬─
|
||
· ╰── `from` expected
|
||
╰────
|
||
|
||
× Expected `from` but found `string`
|
||
╭─[misc/fail/import-source-without-from.js:1:15]
|
||
1 │ import source 'module';
|
||
· ────┬───
|
||
· ╰── `from` expected
|
||
╰────
|
||
|
||
× The only valid property accesses on import are `import.meta`, `import.source()`, and `import.defer()`
|
||
╭─[misc/fail/import-sync-expression.js:1:11]
|
||
1 │ const x = import.sync("baz");
|
||
· ───────────
|
||
╰────
|
||
|
||
× TS(1363): A type-only import can specify a default import or named bindings, but not both.
|
||
╭─[misc/fail/import-type-mixed-empty.ts:3:13]
|
||
2 │ // TS1363: A type-only import can specify a default import or named bindings, but not both.
|
||
3 │ import type foo, {} from 'bar';
|
||
· ───
|
||
╰────
|
||
|
||
× TS(1363): A type-only import can specify a default import or named bindings, but not both.
|
||
╭─[misc/fail/import-type-mixed-star.ts:3:13]
|
||
2 │ // TS1363: A type-only import can specify a default import or named bindings, but not both.
|
||
3 │ import type A, * as NS from 'mod';
|
||
· ─
|
||
╰────
|
||
|
||
× TS(1141): String literal expected.
|
||
╭─[misc/fail/import-type-source-not-string.ts:2:24]
|
||
1 │ // String literal expected in import type source
|
||
2 │ type A = typeof import(`react`);
|
||
· ───────
|
||
3 │ type B = typeof import(A);
|
||
╰────
|
||
|
||
× TS(1141): String literal expected.
|
||
╭─[misc/fail/import-type-source-not-string.ts:3:24]
|
||
2 │ type A = typeof import(`react`);
|
||
3 │ type B = typeof import(A);
|
||
· ─
|
||
4 │ type C = typeof import(`${A} ${B}`);
|
||
╰────
|
||
|
||
× TS(1141): String literal expected.
|
||
╭─[misc/fail/import-type-source-not-string.ts:4:24]
|
||
3 │ type B = typeof import(A);
|
||
4 │ type C = typeof import(`${A} ${B}`);
|
||
· ───────────
|
||
5 │ type D = typeof import(typeof import('react'));
|
||
╰────
|
||
|
||
× TS(1141): String literal expected.
|
||
╭─[misc/fail/import-type-source-not-string.ts:5:24]
|
||
4 │ type C = typeof import(`${A} ${B}`);
|
||
5 │ type D = typeof import(typeof import('react'));
|
||
· ──────────────────────
|
||
╰────
|
||
|
||
× Expected `from` but found `string`
|
||
╭─[misc/fail/import-type-without-from.ts:1:13]
|
||
1 │ import type 'module';
|
||
· ────┬───
|
||
· ╰── `from` expected
|
||
╰────
|
||
|
||
× Expected `from` but found `string`
|
||
╭─[misc/fail/import-without-from.js:1:16]
|
||
1 │ import unknown 'module';
|
||
· ────┬───
|
||
· ╰── `from` expected
|
||
╰────
|
||
|
||
× TS(2368): Type parameter name cannot be 'string'
|
||
╭─[misc/fail/infer-reserved-type-name.ts:1:29]
|
||
1 │ type T<X> = X extends infer string ? string : never;
|
||
· ──────
|
||
╰────
|
||
|
||
× Adjacent JSX elements must be wrapped in an enclosing tag.
|
||
╭─[misc/fail/jsx-adjacent-elements.jsx:3:3]
|
||
2 │ <div />
|
||
3 │ <span />
|
||
· ─
|
||
4 │ );
|
||
╰────
|
||
help: Did you want a JSX fragment `<>...</>`?
|
||
|
||
× Adjacent JSX elements must be wrapped in an enclosing tag.
|
||
╭─[misc/fail/jsx-element-followed-by-less-than.jsx:6:19]
|
||
5 │ // JSX element as unwrapped adjacent JSX, and oxc follows them for consistency.
|
||
6 │ const a = <div /> < 5;
|
||
· ─
|
||
╰────
|
||
help: Did you want a JSX fragment `<>...</>`?
|
||
|
||
× Unexpected JSX expression
|
||
╭─[misc/fail/jsx-in-js.js:1:20]
|
||
1 │ export const foo = <Foo />;
|
||
· ─
|
||
╰────
|
||
help: JSX syntax is disabled and should be enabled via the parser options
|
||
|
||
× Unexpected JSX expression
|
||
╭─[misc/fail/jsx-like-in-js.js:1:20]
|
||
1 │ export const foo = <Foo;
|
||
· ─
|
||
╰────
|
||
help: JSX syntax is disabled and should be enabled via the parser options
|
||
|
||
× TS(18007): JSX expressions may not use the comma operator
|
||
╭─[misc/fail/jsx-unparenthesized-comma.jsx:1:5]
|
||
1 │ <A>{a, b}</A>;
|
||
· ────
|
||
2 │ <A x={a, b} />;
|
||
╰────
|
||
help: Did you mean to write an array?
|
||
|
||
× TS(18007): JSX expressions may not use the comma operator
|
||
╭─[misc/fail/jsx-unparenthesized-comma.jsx:2:7]
|
||
1 │ <A>{a, b}</A>;
|
||
2 │ <A x={a, b} />;
|
||
· ────
|
||
3 │ <A>{(a, b), c}</A>;
|
||
╰────
|
||
help: Did you mean to write an array?
|
||
|
||
× TS(18007): JSX expressions may not use the comma operator
|
||
╭─[misc/fail/jsx-unparenthesized-comma.jsx:3:5]
|
||
2 │ <A x={a, b} />;
|
||
3 │ <A>{(a, b), c}</A>;
|
||
· ─────────
|
||
4 │ <A x={(a, b), c} />;
|
||
╰────
|
||
help: Did you mean to write an array?
|
||
|
||
× TS(18007): JSX expressions may not use the comma operator
|
||
╭─[misc/fail/jsx-unparenthesized-comma.jsx:4:7]
|
||
3 │ <A>{(a, b), c}</A>;
|
||
4 │ <A x={(a, b), c} />;
|
||
· ─────────
|
||
╰────
|
||
help: Did you mean to write an array?
|
||
|
||
× The keyword 'let' is reserved
|
||
╭─[misc/fail/let-member-expression.js:4:1]
|
||
3 │
|
||
4 │ let.x;
|
||
· ───
|
||
5 │
|
||
╰────
|
||
note: This identifier is reserved in strict mode code
|
||
|
||
× The keyword 'let' is reserved
|
||
╭─[misc/fail/let-member-expression.js:6:1]
|
||
5 │
|
||
6 │ let.x = 1;
|
||
· ───
|
||
7 │ let()[x] = 1;
|
||
╰────
|
||
note: This identifier is reserved in strict mode code
|
||
|
||
× The keyword 'let' is reserved
|
||
╭─[misc/fail/let-member-expression.js:7:1]
|
||
6 │ let.x = 1;
|
||
7 │ let()[x] = 1;
|
||
· ───
|
||
8 │
|
||
╰────
|
||
note: This identifier is reserved in strict mode code
|
||
|
||
× The keyword 'let' is reserved
|
||
╭─[misc/fail/let-member-expression.js:9:1]
|
||
8 │
|
||
9 │ let?.x;
|
||
· ───
|
||
10 │ let?.y.z;
|
||
╰────
|
||
note: This identifier is reserved in strict mode code
|
||
|
||
× The keyword 'let' is reserved
|
||
╭─[misc/fail/let-member-expression.js:10:1]
|
||
9 │ let?.x;
|
||
10 │ let?.y.z;
|
||
· ───
|
||
11 │ let?.[0];
|
||
╰────
|
||
note: This identifier is reserved in strict mode code
|
||
|
||
× The keyword 'let' is reserved
|
||
╭─[misc/fail/let-member-expression.js:11:1]
|
||
10 │ let?.y.z;
|
||
11 │ let?.[0];
|
||
· ───
|
||
12 │ let?.method();
|
||
╰────
|
||
note: This identifier is reserved in strict mode code
|
||
|
||
× The keyword 'let' is reserved
|
||
╭─[misc/fail/let-member-expression.js:12:1]
|
||
11 │ let?.[0];
|
||
12 │ let?.method();
|
||
· ───
|
||
╰────
|
||
note: This identifier is reserved in strict mode code
|
||
|
||
× Cannot use `yield` as an identifier in a generator context
|
||
╭─[misc/fail/minus-yield-100.js:1:27]
|
||
1 │ export function* foo() { -yield 100 }
|
||
· ─────
|
||
╰────
|
||
help: Wrap this in parentheses if you want to use a `yield` expression here
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[misc/fail/minus-yield-100.js:1:32]
|
||
1 │ export function* foo() { -yield 100 }
|
||
· ▲
|
||
╰────
|
||
help: Try inserting a semicolon here
|
||
|
||
× Expected `:` but found `EOF`
|
||
╭─[misc/fail/missing-conditional-alternative-type.ts:2:1]
|
||
1 │ type A = 1 extends 2 ? 3
|
||
· ┬
|
||
· ╰── Conditional starts here
|
||
╰────
|
||
|
||
× Expected `:` but found `EOF`
|
||
╭─[misc/fail/missing-conditional-alternative.js:2:1]
|
||
1 │ const foo = 1 ? 2
|
||
· ┬
|
||
· ╰── Conditional starts here
|
||
╰────
|
||
|
||
× Identifier `b` has already been declared
|
||
╭─[misc/fail/oxc-10159.js:1:22]
|
||
1 │ function a() { class b { }; function b() { } }
|
||
· ┬ ┬
|
||
· │ ╰── It can not be redeclared here
|
||
· ╰── `b` has already been declared here
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/oxc-10638.js:2:1]
|
||
1 │ for(
|
||
2 │ in
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/oxc-10639.js:1:1]
|
||
1 │ <<Ç
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/oxc-10977.ts:1:9]
|
||
1 │ class{h:<=Ö
|
||
· ──
|
||
╰────
|
||
|
||
× Expected `from` but found `EOF`
|
||
╭─[misc/fail/oxc-11453.js:2:1]
|
||
1 │ export import
|
||
╰────
|
||
|
||
× Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.
|
||
╭─[misc/fail/oxc-11472.js:1:14]
|
||
1 │ @dec1 export @dec2 class C {}
|
||
· ─────
|
||
2 │
|
||
╰────
|
||
|
||
× Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.
|
||
╭─[misc/fail/oxc-11472.js:3:22]
|
||
2 │
|
||
3 │ @dec1 export default @dec2 class {}
|
||
· ─────
|
||
╰────
|
||
|
||
× Expected `from` but found `EOF`
|
||
╭─[misc/fail/oxc-11484.ts:2:1]
|
||
1 │ import { type as as }
|
||
╰────
|
||
|
||
× Decorators are not valid here.
|
||
╭─[misc/fail/oxc-11485.js:2:10]
|
||
1 │ class C {
|
||
2 │ method(@foo x) {}
|
||
· ────
|
||
3 │ }
|
||
╰────
|
||
|
||
× Decorators are not valid here.
|
||
╭─[misc/fail/oxc-11485.ts:2:10]
|
||
1 │ var obj = {
|
||
2 │ method(@foo x) {},
|
||
· ────
|
||
3 │ };
|
||
╰────
|
||
|
||
× Decorators are not valid here.
|
||
╭─[misc/fail/oxc-11485.ts:5:17]
|
||
4 │
|
||
5 │ function method(@foo x) {}
|
||
· ────
|
||
╰────
|
||
|
||
× Cannot use `await` as an identifier in an async context
|
||
╭─[misc/fail/oxc-11487.cjs:1:7]
|
||
1 │ async await => {}
|
||
· ─────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/oxc-11487.mjs:1:13]
|
||
1 │ async await => {}
|
||
· ──
|
||
╰────
|
||
|
||
× Only a single default import is allowed in a source phase import.
|
||
╭─[misc/fail/oxc-11532.js:1:8]
|
||
1 │ import source { x } from 'x';
|
||
· ──────
|
||
2 │ import defer { x2 } from "x";
|
||
╰────
|
||
|
||
× TS(18059): Named imports are not allowed in a deferred import.
|
||
╭─[misc/fail/oxc-11532.js:2:8]
|
||
1 │ import source { x } from 'x';
|
||
2 │ import defer { x2 } from "x";
|
||
· ─────
|
||
3 │ import defer x3 from "x";
|
||
╰────
|
||
|
||
× TS(18058): Default imports are not allowed in a deferred import.
|
||
╭─[misc/fail/oxc-11532.js:3:8]
|
||
2 │ import defer { x2 } from "x";
|
||
3 │ import defer x3 from "x";
|
||
· ─────
|
||
╰────
|
||
|
||
× Expected `}` but found `function`
|
||
╭─[misc/fail/oxc-11538.js:1:20]
|
||
1 │ const y = `foo ${x function() {} function () {}}`;
|
||
· ────┬───
|
||
· ╰── `}` expected
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/oxc-11592-1.ts:1:11]
|
||
1 │ namespace "a" {}
|
||
· ───
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/oxc-11592-2.ts:1:11]
|
||
1 │ namespace "a";
|
||
· ───
|
||
2 │
|
||
╰────
|
||
|
||
× Expected `{` but found `;`
|
||
╭─[misc/fail/oxc-11592-3.ts:1:12]
|
||
1 │ namespace a;
|
||
· ┬
|
||
· ╰── `{` expected
|
||
╰────
|
||
|
||
× TS(1070): 'abstract' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-1.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ abstract method();
|
||
· ────────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'async' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-10.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ async property;
|
||
· ─────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'const' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-11.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ const method();
|
||
· ─────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'const' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-12.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ const property;
|
||
· ─────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1071): 'const' modifier cannot appear on an index signature.
|
||
╭─[misc/fail/oxc-11713-13.ts:2:3]
|
||
1 │ interface Foo {
|
||
2 │ const [index: string]: number
|
||
· ─────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1071): 'const' modifier cannot appear on an index signature.
|
||
╭─[misc/fail/oxc-11713-14.ts:2:2]
|
||
1 │ const foo: {
|
||
2 │ const [index: string] : string
|
||
· ─────
|
||
3 │ } = {};
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'declare' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-15.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ declare method();
|
||
· ───────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'declare' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-16.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ declare property;
|
||
· ───────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'default' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-17.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ default method();
|
||
· ───────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'default' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-18.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ default property;
|
||
· ───────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1071): 'default' modifier cannot appear on an index signature.
|
||
╭─[misc/fail/oxc-11713-19.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ default [index: string]: number
|
||
· ───────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'static' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-2.ts:2:2]
|
||
1 │ type Foo = {
|
||
2 │ static bar;
|
||
· ──────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1071): 'default' modifier cannot appear on an index signature.
|
||
╭─[misc/fail/oxc-11713-20.ts:2:2]
|
||
1 │ const foo: {
|
||
2 │ default [index: string] : string
|
||
· ───────
|
||
3 │ } = {};
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'export' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-21.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ export method();
|
||
· ──────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'export' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-22.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ export property;
|
||
· ──────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1024): 'readonly' modifier can only appear on a property declaration or index signature.
|
||
╭─[misc/fail/oxc-11713-23.ts:2:3]
|
||
1 │ interface Foo {
|
||
2 │ readonly method();
|
||
· ────────
|
||
3 │ }
|
||
╰────
|
||
|
||
× TS(1031): 'declare' modifier cannot appear on class elements of this kind.
|
||
╭─[misc/fail/oxc-11713-24.ts:2:3]
|
||
1 │ class Foo {
|
||
2 │ declare method() {}
|
||
· ───────
|
||
3 │ }
|
||
╰────
|
||
help: Allowed modifiers are: private, protected, public, static, abstract, override, async
|
||
|
||
× TS(1183): An implementation cannot be declared in ambient contexts.
|
||
╭─[misc/fail/oxc-11713-24.ts:2:20]
|
||
1 │ class Foo {
|
||
2 │ declare method() {}
|
||
· ▲
|
||
3 │ }
|
||
╰────
|
||
|
||
× TS(1024): 'readonly' modifier can only appear on a property declaration or index signature.
|
||
╭─[misc/fail/oxc-11713-25.ts:2:3]
|
||
1 │ class Foo {
|
||
2 │ readonly method() {}
|
||
· ────────
|
||
3 │ }
|
||
╰────
|
||
help: Allowed modifiers are: private, protected, public, static, abstract, override, async
|
||
|
||
× TS(1090): 'readonly' modifier cannot appear on a parameter.
|
||
╭─[misc/fail/oxc-11713-26.ts:1:14]
|
||
1 │ function foo(readonly parameter) {}
|
||
· ────────
|
||
╰────
|
||
help: No modifiers are allowed here.
|
||
|
||
× TS(1090): 'readonly' modifier cannot appear on a parameter.
|
||
╭─[misc/fail/oxc-11713-27.ts:1:20]
|
||
1 │ class Foo { method(readonly parameter) {} }
|
||
· ────────
|
||
╰────
|
||
help: No modifiers are allowed here.
|
||
|
||
× TS(1090): 'private' modifier cannot appear on a parameter.
|
||
╭─[misc/fail/oxc-11713-3.ts:1:14]
|
||
1 │ function foo(private parameter) {}
|
||
· ───────
|
||
╰────
|
||
help: No modifiers are allowed here.
|
||
|
||
× 'declare' modifier cannot be used here.
|
||
╭─[misc/fail/oxc-11713-4.ts:2:2]
|
||
1 │ class Foo {
|
||
2 │ declare get getter() {}
|
||
· ───────
|
||
3 │ }
|
||
╰────
|
||
|
||
× TS(1070): 'abstract' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-5.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ abstract method();
|
||
· ────────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'abstract' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-6.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ abstract property;
|
||
· ────────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'accessor' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-7.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ accessor method();
|
||
· ────────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'accessor' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-8.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ accessor property;
|
||
· ────────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1070): 'async' modifier cannot appear on a type member.
|
||
╭─[misc/fail/oxc-11713-9.ts:2:2]
|
||
1 │ interface Foo {
|
||
2 │ async method();
|
||
· ─────
|
||
3 │ }
|
||
╰────
|
||
help: Only 'readonly' modifier is allowed here.
|
||
|
||
× TS(1098): Type parameter list cannot be empty.
|
||
╭─[misc/fail/oxc-11789-1.ts:1:12]
|
||
1 │ interface i<>implements
|
||
· ──
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/oxc-11789-1.ts:1:25]
|
||
1 │ interface i<>implements
|
||
╰────
|
||
|
||
× TS(1098): Type parameter list cannot be empty.
|
||
╭─[misc/fail/oxc-11789-2.ts:1:12]
|
||
1 │ interface i<>implements K {}
|
||
· ──
|
||
╰────
|
||
|
||
× TS(1176): Interface declaration cannot have 'implements' clause.
|
||
╭─[misc/fail/oxc-11789-2.ts:1:14]
|
||
1 │ interface i<>implements K {}
|
||
· ──────────
|
||
╰────
|
||
|
||
× Unterminated regular expression
|
||
╭─[misc/fail/oxc-12546-1.ts:1:25]
|
||
1 │ interface Props extends /MenuProps {
|
||
· ─────────────
|
||
2 │ collapse?: boolean;
|
||
3 │ menus: MenuRecordRaw[];
|
||
╰────
|
||
|
||
× Unterminated regular expression
|
||
╭─[misc/fail/oxc-12546-2.ts:1:21]
|
||
1 │ class Props extends /MenuProps {
|
||
· ─────────────
|
||
2 │ }
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[misc/fail/oxc-12612-1.ts:1:2]
|
||
1 │ (foo() as bar) = 123;
|
||
· ────────────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[misc/fail/oxc-12612-2.ts:1:2]
|
||
1 │ (<any>foo()) = 123;
|
||
· ──────────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[misc/fail/oxc-12612-3.ts:1:2]
|
||
1 │ (foo() satisfies any) = 123;
|
||
· ───────────────────
|
||
╰────
|
||
|
||
× Cannot assign to this expression
|
||
╭─[misc/fail/oxc-12612-4.ts:1:2]
|
||
1 │ (foo() as number as any) = 123;
|
||
· ──────────────────────
|
||
╰────
|
||
|
||
× Invalid Unicode escape sequence
|
||
╭─[misc/fail/oxc-12816.ts:1:6]
|
||
1 │ {if(\ ()<1){}}
|
||
· ─
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:2:1]
|
||
1 │ // `super()` not in a class or object method
|
||
2 │ super();
|
||
· ───────
|
||
3 │ () => () => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:3:19]
|
||
2 │ super();
|
||
3 │ () => () => 123 + super();
|
||
· ───────
|
||
4 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:4:31]
|
||
3 │ () => () => 123 + super();
|
||
4 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
5 │ () => (arg = super()) => {
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:5:14]
|
||
4 │ if (true) { while (false) { { super(); } } }
|
||
5 │ () => (arg = super()) => {
|
||
· ───────
|
||
6 │ super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:6:3]
|
||
5 │ () => (arg = super()) => {
|
||
6 │ super();
|
||
· ───────
|
||
7 │ () => () => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:7:21]
|
||
6 │ super();
|
||
7 │ () => () => 123 + super();
|
||
· ───────
|
||
8 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:8:33]
|
||
7 │ () => () => 123 + super();
|
||
8 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
9 │ };
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:12:18]
|
||
11 │ // `super()` in a function
|
||
12 │ function f(arg = super()) {
|
||
· ───────
|
||
13 │ super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:13:3]
|
||
12 │ function f(arg = super()) {
|
||
13 │ super();
|
||
· ───────
|
||
14 │ () => () => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:14:21]
|
||
13 │ super();
|
||
14 │ () => () => 123 + super();
|
||
· ───────
|
||
15 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:15:33]
|
||
14 │ () => () => 123 + super();
|
||
15 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
16 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:17:20]
|
||
16 │ }
|
||
17 │ f = function(arg = super()) {
|
||
· ───────
|
||
18 │ super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:18:3]
|
||
17 │ f = function(arg = super()) {
|
||
18 │ super();
|
||
· ───────
|
||
19 │ () => () => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:19:21]
|
||
18 │ super();
|
||
19 │ () => () => 123 + super();
|
||
· ───────
|
||
20 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:20:33]
|
||
19 │ () => () => 123 + super();
|
||
20 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
21 │ };
|
||
╰────
|
||
|
||
× 'super' can only be referenced in a derived class.
|
||
╭─[misc/fail/oxc-13284-1.js:24:1]
|
||
23 │ // `super()` in class constructor of class without super class
|
||
24 │ ╭─▶ class A {
|
||
25 │ │ constructor(arg = super()) {
|
||
· │ ─────
|
||
26 │ │ super();
|
||
27 │ │ () => (arg = super()) => 123 + super();
|
||
28 │ │ if (true) { while (false) { { super(); } } }
|
||
29 │ │ }
|
||
30 │ ├─▶ }
|
||
· ╰──── class does not have `extends`
|
||
31 │
|
||
╰────
|
||
help: either remove this super, or extend the class
|
||
|
||
× 'super' can only be referenced in a derived class.
|
||
╭─[misc/fail/oxc-13284-1.js:24:1]
|
||
23 │ // `super()` in class constructor of class without super class
|
||
24 │ ╭─▶ class A {
|
||
25 │ │ constructor(arg = super()) {
|
||
26 │ │ super();
|
||
· │ ─────
|
||
27 │ │ () => (arg = super()) => 123 + super();
|
||
28 │ │ if (true) { while (false) { { super(); } } }
|
||
29 │ │ }
|
||
30 │ ├─▶ }
|
||
· ╰──── class does not have `extends`
|
||
31 │
|
||
╰────
|
||
help: either remove this super, or extend the class
|
||
|
||
× 'super' can only be referenced in a derived class.
|
||
╭─[misc/fail/oxc-13284-1.js:24:1]
|
||
23 │ // `super()` in class constructor of class without super class
|
||
24 │ ╭─▶ class A {
|
||
25 │ │ constructor(arg = super()) {
|
||
26 │ │ super();
|
||
27 │ │ () => (arg = super()) => 123 + super();
|
||
· │ ─────
|
||
28 │ │ if (true) { while (false) { { super(); } } }
|
||
29 │ │ }
|
||
30 │ ├─▶ }
|
||
· ╰──── class does not have `extends`
|
||
31 │
|
||
╰────
|
||
help: either remove this super, or extend the class
|
||
|
||
× 'super' can only be referenced in a derived class.
|
||
╭─[misc/fail/oxc-13284-1.js:24:1]
|
||
23 │ // `super()` in class constructor of class without super class
|
||
24 │ ╭─▶ class A {
|
||
25 │ │ constructor(arg = super()) {
|
||
26 │ │ super();
|
||
27 │ │ () => (arg = super()) => 123 + super();
|
||
· │ ─────
|
||
28 │ │ if (true) { while (false) { { super(); } } }
|
||
29 │ │ }
|
||
30 │ ├─▶ }
|
||
· ╰──── class does not have `extends`
|
||
31 │
|
||
╰────
|
||
help: either remove this super, or extend the class
|
||
|
||
× 'super' can only be referenced in a derived class.
|
||
╭─[misc/fail/oxc-13284-1.js:24:1]
|
||
23 │ // `super()` in class constructor of class without super class
|
||
24 │ ╭─▶ class A {
|
||
25 │ │ constructor(arg = super()) {
|
||
26 │ │ super();
|
||
27 │ │ () => (arg = super()) => 123 + super();
|
||
28 │ │ if (true) { while (false) { { super(); } } }
|
||
· │ ─────
|
||
29 │ │ }
|
||
30 │ ├─▶ }
|
||
· ╰──── class does not have `extends`
|
||
31 │
|
||
╰────
|
||
help: either remove this super, or extend the class
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:34:10]
|
||
33 │ class B extends Super {
|
||
34 │ prop = super();
|
||
· ───────
|
||
35 │ static prop = () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:35:30]
|
||
34 │ prop = super();
|
||
35 │ static prop = () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
36 │
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:35:48]
|
||
34 │ prop = super();
|
||
35 │ static prop = () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
36 │
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:37:21]
|
||
36 │
|
||
37 │ accessor access = super();
|
||
· ───────
|
||
38 │ static accessor access = () => () => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:38:46]
|
||
37 │ accessor access = super();
|
||
38 │ static accessor access = () => () => 123 + super();
|
||
· ───────
|
||
39 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:43:16]
|
||
42 │ class C extends Super {
|
||
43 │ method(arg = super()) {
|
||
· ───────
|
||
44 │ super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:44:5]
|
||
43 │ method(arg = super()) {
|
||
44 │ super();
|
||
· ───────
|
||
45 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:45:18]
|
||
44 │ super();
|
||
45 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
46 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:45:36]
|
||
44 │ super();
|
||
45 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
46 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:46:35]
|
||
45 │ () => (arg = super()) => 123 + super();
|
||
46 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
47 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:49:23]
|
||
48 │
|
||
49 │ static method(arg = super()) {
|
||
· ───────
|
||
50 │ super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:50:5]
|
||
49 │ static method(arg = super()) {
|
||
50 │ super();
|
||
· ───────
|
||
51 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:51:18]
|
||
50 │ super();
|
||
51 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
52 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:51:36]
|
||
50 │ super();
|
||
51 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
52 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:52:35]
|
||
51 │ () => (arg = super()) => 123 + super();
|
||
52 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
53 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:55:15]
|
||
54 │
|
||
55 │ ['x'](arg = super()) {
|
||
· ───────
|
||
56 │ super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:56:5]
|
||
55 │ ['x'](arg = super()) {
|
||
56 │ super();
|
||
· ───────
|
||
57 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:57:18]
|
||
56 │ super();
|
||
57 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
58 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:57:36]
|
||
56 │ super();
|
||
57 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
58 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:58:35]
|
||
57 │ () => (arg = super()) => 123 + super();
|
||
58 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
59 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:61:22]
|
||
60 │
|
||
61 │ static ['x'](arg = super()) {
|
||
· ───────
|
||
62 │ super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:62:5]
|
||
61 │ static ['x'](arg = super()) {
|
||
62 │ super();
|
||
· ───────
|
||
63 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:63:18]
|
||
62 │ super();
|
||
63 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
64 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:63:36]
|
||
62 │ super();
|
||
63 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
64 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:64:35]
|
||
63 │ () => (arg = super()) => 123 + super();
|
||
64 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
65 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:68:5]
|
||
67 │ get y() {
|
||
68 │ super();
|
||
· ───────
|
||
69 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:69:18]
|
||
68 │ super();
|
||
69 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
70 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:69:36]
|
||
68 │ super();
|
||
69 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
70 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:70:35]
|
||
69 │ () => (arg = super()) => 123 + super();
|
||
70 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
71 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:73:15]
|
||
72 │
|
||
73 │ set y(arg = super()) {
|
||
· ───────
|
||
74 │ super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:74:5]
|
||
73 │ set y(arg = super()) {
|
||
74 │ super();
|
||
· ───────
|
||
75 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:75:18]
|
||
74 │ super();
|
||
75 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
76 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:75:36]
|
||
74 │ super();
|
||
75 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
76 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:76:35]
|
||
75 │ () => (arg = super()) => 123 + super();
|
||
76 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
77 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:80:5]
|
||
79 │ static get y() {
|
||
80 │ super();
|
||
· ───────
|
||
81 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:81:18]
|
||
80 │ super();
|
||
81 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
82 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:81:36]
|
||
80 │ super();
|
||
81 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
82 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:82:35]
|
||
81 │ () => (arg = super()) => 123 + super();
|
||
82 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
83 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:85:22]
|
||
84 │
|
||
85 │ static set y(arg = super()) {
|
||
· ───────
|
||
86 │ super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:86:5]
|
||
85 │ static set y(arg = super()) {
|
||
86 │ super();
|
||
· ───────
|
||
87 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:87:18]
|
||
86 │ super();
|
||
87 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
88 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:87:36]
|
||
86 │ super();
|
||
87 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
88 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:88:35]
|
||
87 │ () => (arg = super()) => 123 + super();
|
||
88 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
89 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:95:5]
|
||
94 │ static {
|
||
95 │ super();
|
||
· ───────
|
||
96 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:96:18]
|
||
95 │ super();
|
||
96 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
97 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:96:36]
|
||
95 │ super();
|
||
96 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
97 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:97:35]
|
||
96 │ () => (arg = super()) => 123 + super();
|
||
97 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
98 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:104:26]
|
||
103 │ constructor() {
|
||
104 │ function inner(arg = super()) {
|
||
· ───────
|
||
105 │ super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:105:7]
|
||
104 │ function inner(arg = super()) {
|
||
105 │ super();
|
||
· ───────
|
||
106 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:106:20]
|
||
105 │ super();
|
||
106 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
107 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:106:38]
|
||
105 │ super();
|
||
106 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
107 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:107:37]
|
||
106 │ () => (arg = super()) => 123 + super();
|
||
107 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
108 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:109:30]
|
||
108 │ }
|
||
109 │ f = () => function(arg = super()) {
|
||
· ───────
|
||
110 │ super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:110:7]
|
||
109 │ f = () => function(arg = super()) {
|
||
110 │ super();
|
||
· ───────
|
||
111 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:111:20]
|
||
110 │ super();
|
||
111 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
112 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:111:38]
|
||
110 │ super();
|
||
111 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
112 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:112:37]
|
||
111 │ () => (arg = super()) => 123 + super();
|
||
112 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
113 │ };
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:115:20]
|
||
114 │ obj = {
|
||
115 │ method(arg = super()) {
|
||
· ───────
|
||
116 │ super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:116:9]
|
||
115 │ method(arg = super()) {
|
||
116 │ super();
|
||
· ───────
|
||
117 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:117:22]
|
||
116 │ super();
|
||
117 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
118 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:117:40]
|
||
116 │ super();
|
||
117 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
118 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:118:39]
|
||
117 │ () => (arg = super()) => 123 + super();
|
||
118 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
119 │ },
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:120:19]
|
||
119 │ },
|
||
120 │ set x(arg = super()) {
|
||
· ───────
|
||
121 │ super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:121:9]
|
||
120 │ set x(arg = super()) {
|
||
121 │ super();
|
||
· ───────
|
||
122 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:122:22]
|
||
121 │ super();
|
||
122 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
123 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:122:40]
|
||
121 │ super();
|
||
122 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
123 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:123:39]
|
||
122 │ () => (arg = super()) => 123 + super();
|
||
123 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
124 │ },
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:131:4]
|
||
130 │ class F extends Super {
|
||
131 │ [super()] = 1;
|
||
· ───────
|
||
132 │ static [(arg = super()) => super()] = 2;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:132:18]
|
||
131 │ [super()] = 1;
|
||
132 │ static [(arg = super()) => super()] = 2;
|
||
· ───────
|
||
133 │ accessor [123 + super()] = 3;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:132:30]
|
||
131 │ [super()] = 1;
|
||
132 │ static [(arg = super()) => super()] = 2;
|
||
· ───────
|
||
133 │ accessor [123 + super()] = 3;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:133:19]
|
||
132 │ static [(arg = super()) => super()] = 2;
|
||
133 │ accessor [123 + super()] = 3;
|
||
· ───────
|
||
134 │ static accessor [() => (arg = super()) => 123 + super()] = 4;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:134:33]
|
||
133 │ accessor [123 + super()] = 3;
|
||
134 │ static accessor [() => (arg = super()) => 123 + super()] = 4;
|
||
· ───────
|
||
135 │ [super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:134:51]
|
||
133 │ accessor [123 + super()] = 3;
|
||
134 │ static accessor [() => (arg = super()) => 123 + super()] = 4;
|
||
· ───────
|
||
135 │ [super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:135:4]
|
||
134 │ static accessor [() => (arg = super()) => 123 + super()] = 4;
|
||
135 │ [super()]() {};
|
||
· ───────
|
||
136 │ static [() => super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:136:17]
|
||
135 │ [super()]() {};
|
||
136 │ static [() => super()]() {};
|
||
· ───────
|
||
137 │ get [super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:137:8]
|
||
136 │ static [() => super()]() {};
|
||
137 │ get [super()]() {};
|
||
· ───────
|
||
138 │ static get [() => super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:138:21]
|
||
137 │ get [super()]() {};
|
||
138 │ static get [() => super()]() {};
|
||
· ───────
|
||
139 │ set [super()](v) {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:139:8]
|
||
138 │ static get [() => super()]() {};
|
||
139 │ set [super()](v) {};
|
||
· ───────
|
||
140 │ static set [() => () => 123 + super()](v) {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:140:33]
|
||
139 │ set [super()](v) {};
|
||
140 │ static set [() => () => 123 + super()](v) {};
|
||
· ───────
|
||
141 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:144:17]
|
||
143 │ // `super()` in class extends
|
||
144 │ class G extends super() {}
|
||
· ───────
|
||
145 │ class H extends (() => () => 123 + super()) {}
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:145:36]
|
||
144 │ class G extends super() {}
|
||
145 │ class H extends (() => () => 123 + super()) {}
|
||
· ───────
|
||
146 │
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:148:2]
|
||
147 │ // `super()` in class decorators
|
||
148 │ @super()
|
||
· ───────
|
||
149 │ class I extends Super {
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:150:4]
|
||
149 │ class I extends Super {
|
||
150 │ @super() prop = 1;
|
||
· ───────
|
||
151 │ @super() static prop = 2;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:151:4]
|
||
150 │ @super() prop = 1;
|
||
151 │ @super() static prop = 2;
|
||
· ───────
|
||
152 │ @super() accessor access = 3;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:152:4]
|
||
151 │ @super() static prop = 2;
|
||
152 │ @super() accessor access = 3;
|
||
· ───────
|
||
153 │ @super() static accessor access = 4;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:153:4]
|
||
152 │ @super() accessor access = 3;
|
||
153 │ @super() static accessor access = 4;
|
||
· ───────
|
||
154 │ @super() method() {}
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:154:4]
|
||
153 │ @super() static accessor access = 4;
|
||
154 │ @super() method() {}
|
||
· ───────
|
||
155 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:161:14]
|
||
160 │ class Inner {
|
||
161 │ prop = super();
|
||
· ───────
|
||
162 │ static prop = (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:162:28]
|
||
161 │ prop = super();
|
||
162 │ static prop = (arg = super()) => 123 + super();
|
||
· ───────
|
||
163 │ accessor access = super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:162:46]
|
||
161 │ prop = super();
|
||
162 │ static prop = (arg = super()) => 123 + super();
|
||
· ───────
|
||
163 │ accessor access = super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:163:25]
|
||
162 │ static prop = (arg = super()) => 123 + super();
|
||
163 │ accessor access = super();
|
||
· ───────
|
||
164 │ static accessor access = (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:164:39]
|
||
163 │ accessor access = super();
|
||
164 │ static accessor access = (arg = super()) => 123 + super();
|
||
· ───────
|
||
165 │ method() { super(); }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:164:57]
|
||
163 │ accessor access = super();
|
||
164 │ static accessor access = (arg = super()) => 123 + super();
|
||
· ───────
|
||
165 │ method() { super(); }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:165:18]
|
||
164 │ static accessor access = (arg = super()) => 123 + super();
|
||
165 │ method() { super(); }
|
||
· ───────
|
||
166 │ static method() { (arg = super()) => 123 + super(); }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:166:32]
|
||
165 │ method() { super(); }
|
||
166 │ static method() { (arg = super()) => 123 + super(); }
|
||
· ───────
|
||
167 │ get x() { super(); }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:166:50]
|
||
165 │ method() { super(); }
|
||
166 │ static method() { (arg = super()) => 123 + super(); }
|
||
· ───────
|
||
167 │ get x() { super(); }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:167:17]
|
||
166 │ static method() { (arg = super()) => 123 + super(); }
|
||
167 │ get x() { super(); }
|
||
· ───────
|
||
168 │ static get y() { (arg = super()) => 123 + super(); }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:168:31]
|
||
167 │ get x() { super(); }
|
||
168 │ static get y() { (arg = super()) => 123 + super(); }
|
||
· ───────
|
||
169 │ set x(v) { super(); }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:168:49]
|
||
167 │ get x() { super(); }
|
||
168 │ static get y() { (arg = super()) => 123 + super(); }
|
||
· ───────
|
||
169 │ set x(v) { super(); }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:169:18]
|
||
168 │ static get y() { (arg = super()) => 123 + super(); }
|
||
169 │ set x(v) { super(); }
|
||
· ───────
|
||
170 │ static set y(v) { (arg = super()) => 123 + super(); }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:170:32]
|
||
169 │ set x(v) { super(); }
|
||
170 │ static set y(v) { (arg = super()) => 123 + super(); }
|
||
· ───────
|
||
171 │ static { super(); }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:170:50]
|
||
169 │ set x(v) { super(); }
|
||
170 │ static set y(v) { (arg = super()) => 123 + super(); }
|
||
· ───────
|
||
171 │ static { super(); }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:171:16]
|
||
170 │ static set y(v) { (arg = super()) => 123 + super(); }
|
||
171 │ static { super(); }
|
||
· ───────
|
||
172 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:179:6]
|
||
178 │ prop = class Inner {
|
||
179 │ [super()] = 1;
|
||
· ───────
|
||
180 │ static [(arg = super()) => super()] = 2;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:180:20]
|
||
179 │ [super()] = 1;
|
||
180 │ static [(arg = super()) => super()] = 2;
|
||
· ───────
|
||
181 │ accessor [123 + super()] = 3;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:180:32]
|
||
179 │ [super()] = 1;
|
||
180 │ static [(arg = super()) => super()] = 2;
|
||
· ───────
|
||
181 │ accessor [123 + super()] = 3;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:181:21]
|
||
180 │ static [(arg = super()) => super()] = 2;
|
||
181 │ accessor [123 + super()] = 3;
|
||
· ───────
|
||
182 │ static accessor [() => (arg = super()) => 123 + super()] = 4;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:182:35]
|
||
181 │ accessor [123 + super()] = 3;
|
||
182 │ static accessor [() => (arg = super()) => 123 + super()] = 4;
|
||
· ───────
|
||
183 │ [super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:182:53]
|
||
181 │ accessor [123 + super()] = 3;
|
||
182 │ static accessor [() => (arg = super()) => 123 + super()] = 4;
|
||
· ───────
|
||
183 │ [super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:183:6]
|
||
182 │ static accessor [() => (arg = super()) => 123 + super()] = 4;
|
||
183 │ [super()]() {};
|
||
· ───────
|
||
184 │ static [() => super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:184:19]
|
||
183 │ [super()]() {};
|
||
184 │ static [() => super()]() {};
|
||
· ───────
|
||
185 │ get [super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:185:10]
|
||
184 │ static [() => super()]() {};
|
||
185 │ get [super()]() {};
|
||
· ───────
|
||
186 │ static get [() => super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:186:23]
|
||
185 │ get [super()]() {};
|
||
186 │ static get [() => super()]() {};
|
||
· ───────
|
||
187 │ set [super()](v) {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:187:10]
|
||
186 │ static get [() => super()]() {};
|
||
187 │ set [super()](v) {};
|
||
· ───────
|
||
188 │ static set [() => () => 123 + super()](v) {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:188:35]
|
||
187 │ set [super()](v) {};
|
||
188 │ static set [() => () => 123 + super()](v) {};
|
||
· ───────
|
||
189 │ };
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:196:8]
|
||
195 │ class Inner {
|
||
196 │ [super()] = 1;
|
||
· ───────
|
||
197 │ static [(arg = super()) => super()] = 2;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:197:22]
|
||
196 │ [super()] = 1;
|
||
197 │ static [(arg = super()) => super()] = 2;
|
||
· ───────
|
||
198 │ accessor [123 + super()] = 3;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:197:34]
|
||
196 │ [super()] = 1;
|
||
197 │ static [(arg = super()) => super()] = 2;
|
||
· ───────
|
||
198 │ accessor [123 + super()] = 3;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:198:23]
|
||
197 │ static [(arg = super()) => super()] = 2;
|
||
198 │ accessor [123 + super()] = 3;
|
||
· ───────
|
||
199 │ static accessor [() => (arg = super()) => 123 + super()] = 4;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:199:37]
|
||
198 │ accessor [123 + super()] = 3;
|
||
199 │ static accessor [() => (arg = super()) => 123 + super()] = 4;
|
||
· ───────
|
||
200 │ [super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:199:55]
|
||
198 │ accessor [123 + super()] = 3;
|
||
199 │ static accessor [() => (arg = super()) => 123 + super()] = 4;
|
||
· ───────
|
||
200 │ [super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:200:8]
|
||
199 │ static accessor [() => (arg = super()) => 123 + super()] = 4;
|
||
200 │ [super()]() {};
|
||
· ───────
|
||
201 │ static [() => super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:201:21]
|
||
200 │ [super()]() {};
|
||
201 │ static [() => super()]() {};
|
||
· ───────
|
||
202 │ get [super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:202:12]
|
||
201 │ static [() => super()]() {};
|
||
202 │ get [super()]() {};
|
||
· ───────
|
||
203 │ static get [() => super()]() {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:203:25]
|
||
202 │ get [super()]() {};
|
||
203 │ static get [() => super()]() {};
|
||
· ───────
|
||
204 │ set [super()](v) {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:204:12]
|
||
203 │ static get [() => super()]() {};
|
||
204 │ set [super()](v) {};
|
||
· ───────
|
||
205 │ static set [() => () => 123 + super()](v) {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:205:37]
|
||
204 │ set [super()](v) {};
|
||
205 │ static set [() => () => 123 + super()](v) {};
|
||
· ───────
|
||
206 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:212:31]
|
||
211 │ class M extends Super {
|
||
212 │ prop1 = class Inner extends super() {};
|
||
· ───────
|
||
213 │ prop2 = class Inner extends (() => (arg = super()) => 123 + super()) {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:213:45]
|
||
212 │ prop1 = class Inner extends super() {};
|
||
213 │ prop2 = class Inner extends (() => (arg = super()) => 123 + super()) {};
|
||
· ───────
|
||
214 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:213:63]
|
||
212 │ prop1 = class Inner extends super() {};
|
||
213 │ prop2 = class Inner extends (() => (arg = super()) => 123 + super()) {};
|
||
· ───────
|
||
214 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:219:26]
|
||
218 │ method() {
|
||
219 │ class Inner1 extends super() {};
|
||
· ───────
|
||
220 │ class Inner2 extends (() => (arg = super()) => 123 + super()) {};
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:220:40]
|
||
219 │ class Inner1 extends super() {};
|
||
220 │ class Inner2 extends (() => (arg = super()) => 123 + super()) {};
|
||
· ───────
|
||
221 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:220:58]
|
||
219 │ class Inner1 extends super() {};
|
||
220 │ class Inner2 extends (() => (arg = super()) => 123 + super()) {};
|
||
· ───────
|
||
221 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:226:11]
|
||
225 │ class O extends Super {
|
||
226 │ prop = @super() class Inner extends Super {
|
||
· ───────
|
||
227 │ @super() prop = 1;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:227:6]
|
||
226 │ prop = @super() class Inner extends Super {
|
||
227 │ @super() prop = 1;
|
||
· ───────
|
||
228 │ @super() static prop = 2;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:228:6]
|
||
227 │ @super() prop = 1;
|
||
228 │ @super() static prop = 2;
|
||
· ───────
|
||
229 │ @super() accessor access = 3;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:229:6]
|
||
228 │ @super() static prop = 2;
|
||
229 │ @super() accessor access = 3;
|
||
· ───────
|
||
230 │ @super() static accessor access = 4;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:230:6]
|
||
229 │ @super() accessor access = 3;
|
||
230 │ @super() static accessor access = 4;
|
||
· ───────
|
||
231 │ @super() method() {}
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:231:6]
|
||
230 │ @super() static accessor access = 4;
|
||
231 │ @super() method() {}
|
||
· ───────
|
||
232 │ };
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:238:6]
|
||
237 │ method() {
|
||
238 │ @super()
|
||
· ───────
|
||
239 │ class Inner extends Super {
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:240:8]
|
||
239 │ class Inner extends Super {
|
||
240 │ @super() prop = 1;
|
||
· ───────
|
||
241 │ @super() static prop = 2;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:241:8]
|
||
240 │ @super() prop = 1;
|
||
241 │ @super() static prop = 2;
|
||
· ───────
|
||
242 │ @super() accessor access = 3;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:242:8]
|
||
241 │ @super() static prop = 2;
|
||
242 │ @super() accessor access = 3;
|
||
· ───────
|
||
243 │ @super() static accessor access = 4;
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:243:8]
|
||
242 │ @super() accessor access = 3;
|
||
243 │ @super() static accessor access = 4;
|
||
· ───────
|
||
244 │ @super() method() {}
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:244:8]
|
||
243 │ @super() static accessor access = 4;
|
||
244 │ @super() method() {}
|
||
· ───────
|
||
245 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:257:16]
|
||
256 │ class C {
|
||
257 │ [super()]() {}
|
||
· ───────
|
||
258 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:264:53]
|
||
263 │
|
||
264 │ class D extends class E extends class F extends super() {} {} {}
|
||
· ───────
|
||
265 │
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:271:16]
|
||
270 │ class I {
|
||
271 │ @super()
|
||
· ───────
|
||
272 │ method() {}
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:286:5]
|
||
285 │ method() {
|
||
286 │ super();
|
||
· ───────
|
||
287 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:287:18]
|
||
286 │ super();
|
||
287 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
288 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:287:36]
|
||
286 │ super();
|
||
287 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
288 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:288:35]
|
||
287 │ () => (arg = super()) => 123 + super();
|
||
288 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
289 │ },
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:291:5]
|
||
290 │ ['x']() {
|
||
291 │ super();
|
||
· ───────
|
||
292 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:292:18]
|
||
291 │ super();
|
||
292 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
293 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:292:36]
|
||
291 │ super();
|
||
292 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
293 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:293:35]
|
||
292 │ () => (arg = super()) => 123 + super();
|
||
293 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
294 │ },
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:296:5]
|
||
295 │ get x() {
|
||
296 │ super();
|
||
· ───────
|
||
297 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:297:18]
|
||
296 │ super();
|
||
297 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
298 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:297:36]
|
||
296 │ super();
|
||
297 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
298 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:298:35]
|
||
297 │ () => (arg = super()) => 123 + super();
|
||
298 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
299 │ },
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:301:5]
|
||
300 │ set x(v) {
|
||
301 │ super();
|
||
· ───────
|
||
302 │ () => (arg = super()) => 123 + super();
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:302:18]
|
||
301 │ super();
|
||
302 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
303 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:302:36]
|
||
301 │ super();
|
||
302 │ () => (arg = super()) => 123 + super();
|
||
· ───────
|
||
303 │ if (true) { while (false) { { super(); } } }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284-1.js:303:35]
|
||
302 │ () => (arg = super()) => 123 + super();
|
||
303 │ if (true) { while (false) { { super(); } } }
|
||
· ───────
|
||
304 │ },
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:2:1]
|
||
1 │ // `super.foo` not in a class or object method
|
||
2 │ super.foo;
|
||
· ─────
|
||
3 │ () => (arg = super.foo) => 123 + super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:3:14]
|
||
2 │ super.foo;
|
||
3 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
4 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:3:34]
|
||
2 │ super.foo;
|
||
3 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
4 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:4:31]
|
||
3 │ () => (arg = super.foo) => 123 + super.foo;
|
||
4 │ if (true) { while (false) { { super.foo; } } }
|
||
· ─────
|
||
5 │ () => () => {
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:6:3]
|
||
5 │ () => () => {
|
||
6 │ super.foo;
|
||
· ─────
|
||
7 │ () => (arg = super.foo) => 123 + super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:7:16]
|
||
6 │ super.foo;
|
||
7 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
8 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:7:36]
|
||
6 │ super.foo;
|
||
7 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
8 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:8:33]
|
||
7 │ () => (arg = super.foo) => 123 + super.foo;
|
||
8 │ if (true) { while (false) { { super.foo; } } }
|
||
· ─────
|
||
9 │ };
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:12:18]
|
||
11 │ // `super.foo` in a function
|
||
12 │ function f(arg = super.foo) {
|
||
· ─────
|
||
13 │ super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:13:3]
|
||
12 │ function f(arg = super.foo) {
|
||
13 │ super.foo;
|
||
· ─────
|
||
14 │ () => (arg = super.foo) => 123 + super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:14:16]
|
||
13 │ super.foo;
|
||
14 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
15 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:14:36]
|
||
13 │ super.foo;
|
||
14 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
15 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:15:33]
|
||
14 │ () => (arg = super.foo) => 123 + super.foo;
|
||
15 │ if (true) { while (false) { { super.foo; } } }
|
||
· ─────
|
||
16 │ }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:17:20]
|
||
16 │ }
|
||
17 │ f = function(arg = super.foo) {
|
||
· ─────
|
||
18 │ super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:18:3]
|
||
17 │ f = function(arg = super.foo) {
|
||
18 │ super.foo;
|
||
· ─────
|
||
19 │ () => (arg = super.foo) => 123 + super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:19:16]
|
||
18 │ super.foo;
|
||
19 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
20 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:19:36]
|
||
18 │ super.foo;
|
||
19 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
20 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:20:33]
|
||
19 │ () => (arg = super.foo) => 123 + super.foo;
|
||
20 │ if (true) { while (false) { { super.foo; } } }
|
||
· ─────
|
||
21 │ };
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:26:26]
|
||
25 │ constructor() {
|
||
26 │ function inner(arg = super.foo) {
|
||
· ─────
|
||
27 │ super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:27:7]
|
||
26 │ function inner(arg = super.foo) {
|
||
27 │ super.foo;
|
||
· ─────
|
||
28 │ () => (arg = super.foo) => 123 + super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:28:20]
|
||
27 │ super.foo;
|
||
28 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
29 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:28:40]
|
||
27 │ super.foo;
|
||
28 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
29 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:29:37]
|
||
28 │ () => (arg = super.foo) => 123 + super.foo;
|
||
29 │ if (true) { while (false) { { super.foo; } } }
|
||
· ─────
|
||
30 │ }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:31:30]
|
||
30 │ }
|
||
31 │ f = () => function(arg = super.foo) {
|
||
· ─────
|
||
32 │ super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:32:7]
|
||
31 │ f = () => function(arg = super.foo) {
|
||
32 │ super.foo;
|
||
· ─────
|
||
33 │ () => (arg = super.foo) => 123 + super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:33:20]
|
||
32 │ super.foo;
|
||
33 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
34 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:33:40]
|
||
32 │ super.foo;
|
||
33 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
34 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:34:37]
|
||
33 │ () => (arg = super.foo) => 123 + super.foo;
|
||
34 │ if (true) { while (false) { { super.foo; } } }
|
||
· ─────
|
||
35 │ };
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:42:26]
|
||
41 │ method() {
|
||
42 │ function inner(arg = super.foo) {
|
||
· ─────
|
||
43 │ super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:43:7]
|
||
42 │ function inner(arg = super.foo) {
|
||
43 │ super.foo;
|
||
· ─────
|
||
44 │ () => (arg = super.foo) => 123 + super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:44:20]
|
||
43 │ super.foo;
|
||
44 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
45 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:44:40]
|
||
43 │ super.foo;
|
||
44 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
45 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:45:37]
|
||
44 │ () => (arg = super.foo) => 123 + super.foo;
|
||
45 │ if (true) { while (false) { { super.foo; } } }
|
||
· ─────
|
||
46 │ }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:47:30]
|
||
46 │ }
|
||
47 │ f = () => function(arg = super.foo) {
|
||
· ─────
|
||
48 │ super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:48:7]
|
||
47 │ f = () => function(arg = super.foo) {
|
||
48 │ super.foo;
|
||
· ─────
|
||
49 │ () => (arg = super.foo) => 123 + super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:49:20]
|
||
48 │ super.foo;
|
||
49 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
50 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:49:40]
|
||
48 │ super.foo;
|
||
49 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
50 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:50:37]
|
||
49 │ () => (arg = super.foo) => 123 + super.foo;
|
||
50 │ if (true) { while (false) { { super.foo; } } }
|
||
· ─────
|
||
51 │ };
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:58:26]
|
||
57 │ prop = () => {
|
||
58 │ function inner(arg = super.foo) {
|
||
· ─────
|
||
59 │ super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:59:7]
|
||
58 │ function inner(arg = super.foo) {
|
||
59 │ super.foo;
|
||
· ─────
|
||
60 │ () => (arg = super.foo) => 123 + super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:60:20]
|
||
59 │ super.foo;
|
||
60 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
61 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:60:40]
|
||
59 │ super.foo;
|
||
60 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
61 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:61:37]
|
||
60 │ () => (arg = super.foo) => 123 + super.foo;
|
||
61 │ if (true) { while (false) { { super.foo; } } }
|
||
· ─────
|
||
62 │ }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:63:30]
|
||
62 │ }
|
||
63 │ f = () => function(arg = super.foo) {
|
||
· ─────
|
||
64 │ super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:64:7]
|
||
63 │ f = () => function(arg = super.foo) {
|
||
64 │ super.foo;
|
||
· ─────
|
||
65 │ () => (arg = super.foo) => 123 + super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:65:20]
|
||
64 │ super.foo;
|
||
65 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
66 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:65:40]
|
||
64 │ super.foo;
|
||
65 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
66 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:66:37]
|
||
65 │ () => (arg = super.foo) => 123 + super.foo;
|
||
66 │ if (true) { while (false) { { super.foo; } } }
|
||
· ─────
|
||
67 │ };
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:73:4]
|
||
72 │ class D {
|
||
73 │ [super.foo] = 1;
|
||
· ─────
|
||
74 │ static [() => super.foo] = 2;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:74:17]
|
||
73 │ [super.foo] = 1;
|
||
74 │ static [() => super.foo] = 2;
|
||
· ─────
|
||
75 │ accessor [123 + super.foo] = 3;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:75:19]
|
||
74 │ static [() => super.foo] = 2;
|
||
75 │ accessor [123 + super.foo] = 3;
|
||
· ─────
|
||
76 │ static accessor [() => () => 123 + super.foo] = 4;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:76:38]
|
||
75 │ accessor [123 + super.foo] = 3;
|
||
76 │ static accessor [() => () => 123 + super.foo] = 4;
|
||
· ─────
|
||
77 │ [super.foo]() {};
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:77:4]
|
||
76 │ static accessor [() => () => 123 + super.foo] = 4;
|
||
77 │ [super.foo]() {};
|
||
· ─────
|
||
78 │ static [() => super.foo]() {};
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:78:17]
|
||
77 │ [super.foo]() {};
|
||
78 │ static [() => super.foo]() {};
|
||
· ─────
|
||
79 │ get [super.foo]() {};
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:79:8]
|
||
78 │ static [() => super.foo]() {};
|
||
79 │ get [super.foo]() {};
|
||
· ─────
|
||
80 │ static get [() => super.foo]() {};
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:80:21]
|
||
79 │ get [super.foo]() {};
|
||
80 │ static get [() => super.foo]() {};
|
||
· ─────
|
||
81 │ set [super.foo](v) {};
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:81:8]
|
||
80 │ static get [() => super.foo]() {};
|
||
81 │ set [super.foo](v) {};
|
||
· ─────
|
||
82 │ static set [() => () => 123 + super.foo](v) {};
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:82:33]
|
||
81 │ set [super.foo](v) {};
|
||
82 │ static set [() => () => 123 + super.foo](v) {};
|
||
· ─────
|
||
83 │ }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:86:17]
|
||
85 │ // `super.foo` in class extends
|
||
86 │ class E extends super.foo {}
|
||
· ─────
|
||
87 │ class F extends (() => (arg = super.foo) => 123 + super.foo) {}
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:87:31]
|
||
86 │ class E extends super.foo {}
|
||
87 │ class F extends (() => (arg = super.foo) => 123 + super.foo) {}
|
||
· ─────
|
||
88 │
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:87:51]
|
||
86 │ class E extends super.foo {}
|
||
87 │ class F extends (() => (arg = super.foo) => 123 + super.foo) {}
|
||
· ─────
|
||
88 │
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:90:2]
|
||
89 │ // `super.foo` in class decorators
|
||
90 │ @super.foo
|
||
· ─────
|
||
91 │ class G extends Super {
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:92:4]
|
||
91 │ class G extends Super {
|
||
92 │ @super.foo prop = 1;
|
||
· ─────
|
||
93 │ @super.foo static prop = 2;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:93:4]
|
||
92 │ @super.foo prop = 1;
|
||
93 │ @super.foo static prop = 2;
|
||
· ─────
|
||
94 │ @super.foo accessor access = 3;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:94:4]
|
||
93 │ @super.foo static prop = 2;
|
||
94 │ @super.foo accessor access = 3;
|
||
· ─────
|
||
95 │ @super.foo static accessor access = 4;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:95:4]
|
||
94 │ @super.foo accessor access = 3;
|
||
95 │ @super.foo static accessor access = 4;
|
||
· ─────
|
||
96 │ @super.foo method() {}
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:96:4]
|
||
95 │ @super.foo static accessor access = 4;
|
||
96 │ @super.foo method() {}
|
||
· ─────
|
||
97 │ }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:102:6]
|
||
101 │ class Inner {
|
||
102 │ [super.foo] = 1;
|
||
· ─────
|
||
103 │ static [(arg = super.foo) => super.foo] = 2;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:103:20]
|
||
102 │ [super.foo] = 1;
|
||
103 │ static [(arg = super.foo) => super.foo] = 2;
|
||
· ─────
|
||
104 │ accessor [123 + super.foo] = 3;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:103:34]
|
||
102 │ [super.foo] = 1;
|
||
103 │ static [(arg = super.foo) => super.foo] = 2;
|
||
· ─────
|
||
104 │ accessor [123 + super.foo] = 3;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:104:21]
|
||
103 │ static [(arg = super.foo) => super.foo] = 2;
|
||
104 │ accessor [123 + super.foo] = 3;
|
||
· ─────
|
||
105 │ static accessor [() => (arg = super.foo) => 123 + super.foo] = 4;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:105:35]
|
||
104 │ accessor [123 + super.foo] = 3;
|
||
105 │ static accessor [() => (arg = super.foo) => 123 + super.foo] = 4;
|
||
· ─────
|
||
106 │ [super.foo]() {};
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:105:55]
|
||
104 │ accessor [123 + super.foo] = 3;
|
||
105 │ static accessor [() => (arg = super.foo) => 123 + super.foo] = 4;
|
||
· ─────
|
||
106 │ [super.foo]() {};
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:106:6]
|
||
105 │ static accessor [() => (arg = super.foo) => 123 + super.foo] = 4;
|
||
106 │ [super.foo]() {};
|
||
· ─────
|
||
107 │ static [() => super.foo]() {};
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:107:19]
|
||
106 │ [super.foo]() {};
|
||
107 │ static [() => super.foo]() {};
|
||
· ─────
|
||
108 │ get [super.foo]() {};
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:108:10]
|
||
107 │ static [() => super.foo]() {};
|
||
108 │ get [super.foo]() {};
|
||
· ─────
|
||
109 │ static get [() => super.foo]() {};
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:109:23]
|
||
108 │ get [super.foo]() {};
|
||
109 │ static get [() => super.foo]() {};
|
||
· ─────
|
||
110 │ set [super.foo](v) {};
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:110:10]
|
||
109 │ static get [() => super.foo]() {};
|
||
110 │ set [super.foo](v) {};
|
||
· ─────
|
||
111 │ static set [() => () => 123 + super.foo](v) {};
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:111:35]
|
||
110 │ set [super.foo](v) {};
|
||
111 │ static set [() => () => 123 + super.foo](v) {};
|
||
· ─────
|
||
112 │ }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:117:19]
|
||
116 │ function h() {
|
||
117 │ class E extends super.foo {}
|
||
· ─────
|
||
118 │ class F extends (() => (arg = super.foo) => 123 + super.foo) {}
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:118:33]
|
||
117 │ class E extends super.foo {}
|
||
118 │ class F extends (() => (arg = super.foo) => 123 + super.foo) {}
|
||
· ─────
|
||
119 │ }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:118:53]
|
||
117 │ class E extends super.foo {}
|
||
118 │ class F extends (() => (arg = super.foo) => 123 + super.foo) {}
|
||
· ─────
|
||
119 │ }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:123:4]
|
||
122 │ function i() {
|
||
123 │ @super.foo
|
||
· ─────
|
||
124 │ class Inner {
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:125:6]
|
||
124 │ class Inner {
|
||
125 │ @super.foo prop = 1;
|
||
· ─────
|
||
126 │ @super.foo static prop = 2;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:126:6]
|
||
125 │ @super.foo prop = 1;
|
||
126 │ @super.foo static prop = 2;
|
||
· ─────
|
||
127 │ @super.foo accessor access = 3;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:127:6]
|
||
126 │ @super.foo static prop = 2;
|
||
127 │ @super.foo accessor access = 3;
|
||
· ─────
|
||
128 │ @super.foo static accessor access = 4;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:128:6]
|
||
127 │ @super.foo accessor access = 3;
|
||
128 │ @super.foo static accessor access = 4;
|
||
· ─────
|
||
129 │ @super.foo method() {}
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:129:6]
|
||
128 │ @super.foo static accessor access = 4;
|
||
129 │ @super.foo method() {}
|
||
· ─────
|
||
130 │ }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:135:16]
|
||
134 │ obj = {
|
||
135 │ prop: (arg = super.foo) => {
|
||
· ─────
|
||
136 │ super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:136:5]
|
||
135 │ prop: (arg = super.foo) => {
|
||
136 │ super.foo;
|
||
· ─────
|
||
137 │ () => (arg = super.foo) => 123 + super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:137:18]
|
||
136 │ super.foo;
|
||
137 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
138 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:137:38]
|
||
136 │ super.foo;
|
||
137 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
138 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:138:35]
|
||
137 │ () => (arg = super.foo) => 123 + super.foo;
|
||
138 │ if (true) { while (false) { { super.foo; } } }
|
||
· ─────
|
||
139 │ },
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:140:17]
|
||
139 │ },
|
||
140 │ ['x']: (arg = super.foo) => {
|
||
· ─────
|
||
141 │ super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:141:5]
|
||
140 │ ['x']: (arg = super.foo) => {
|
||
141 │ super.foo;
|
||
· ─────
|
||
142 │ () => (arg = super.foo) => 123 + super.foo;
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:142:18]
|
||
141 │ super.foo;
|
||
142 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
143 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:142:38]
|
||
141 │ super.foo;
|
||
142 │ () => (arg = super.foo) => 123 + super.foo;
|
||
· ─────
|
||
143 │ if (true) { while (false) { { super.foo; } } }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284-2.js:143:35]
|
||
142 │ () => (arg = super.foo) => 123 + super.foo;
|
||
143 │ if (true) { while (false) { { super.foo; } } }
|
||
· ─────
|
||
144 │ },
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284.ts:6:46]
|
||
5 │ class C extends Super {
|
||
6 │ [keys: string]: typeof import('x', { with: super() }).y;
|
||
· ───────
|
||
7 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284.ts:10:37]
|
||
9 │ class D extends Super {
|
||
10 │ [keys: typeof import('x', { with: super() }).y]: string;
|
||
· ───────
|
||
11 │ }
|
||
╰────
|
||
|
||
× TS(2337): Super calls are not permitted outside constructors or in nested functions inside constructors.
|
||
╭─[misc/fail/oxc-13284.ts:16:50]
|
||
15 │ class Inner {
|
||
16 │ [keys: string]: typeof import('x', { with: super() }).y;
|
||
· ───────
|
||
17 │ }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in a derived class.
|
||
╭─[misc/fail/oxc-13284.ts:21:1]
|
||
20 │
|
||
21 │ ╭─▶ class Outer2 {
|
||
22 │ │ constructor() {
|
||
23 │ │ class Inner extends Super {
|
||
24 │ │ [keys: typeof import('x', { with: super() }).y]: string;
|
||
· │ ─────
|
||
25 │ │ }
|
||
26 │ │ }
|
||
27 │ ├─▶ }
|
||
· ╰──── class does not have `extends`
|
||
28 │
|
||
╰────
|
||
help: either remove this super, or extend the class
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13284.ts:35:37]
|
||
34 │ class F {
|
||
35 │ [keys: typeof import('x', { with: super.foo }).y]: string;
|
||
· ─────
|
||
36 │ }
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13323.js:3:5]
|
||
2 │ foo: function() {
|
||
3 │ super.foo;
|
||
· ─────
|
||
4 │ },
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13323.js:8:7]
|
||
7 │ return function() {
|
||
8 │ super.bar;
|
||
· ─────
|
||
9 │ };
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13323.js:12:18]
|
||
11 │
|
||
12 │ [ function() { super.qux; } ]() {},
|
||
· ─────
|
||
13 │
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13323.js:14:22]
|
||
13 │
|
||
14 │ get [ function() { super.bing; } ]() {},
|
||
· ─────
|
||
15 │
|
||
╰────
|
||
|
||
× 'super' can only be referenced in members of derived classes or object literal expressions.
|
||
╭─[misc/fail/oxc-13323.js:16:22]
|
||
15 │
|
||
16 │ set [ function() { super.bong; } ](v) {},
|
||
· ─────
|
||
17 │ };
|
||
╰────
|
||
|
||
× TS(1099): Type argument list cannot be empty.
|
||
╭─[misc/fail/oxc-13617-1.ts:1:4]
|
||
1 │ foo<>()
|
||
· ──
|
||
╰────
|
||
|
||
× TS(1099): Type argument list cannot be empty.
|
||
╭─[misc/fail/oxc-13617-2.ts:1:8]
|
||
1 │ new Foo<>()
|
||
· ──
|
||
╰────
|
||
|
||
× TS(1099): Type argument list cannot be empty.
|
||
╭─[misc/fail/oxc-13617-3.ts:1:25]
|
||
1 │ class Foo {property: Bar<> = 1}
|
||
· ──
|
||
╰────
|
||
|
||
× TS(1099): Type argument list cannot be empty.
|
||
╭─[misc/fail/oxc-13617-4.ts:1:15]
|
||
1 │ const foo: Foo<> = 1
|
||
· ──
|
||
╰────
|
||
|
||
× TS(1267): Property 'prop' cannot have an initializer because it is marked abstract.
|
||
╭─[misc/fail/oxc-14013.ts:2:12]
|
||
1 │ abstract class Foo {
|
||
2 │ abstract prop = 3;
|
||
· ────
|
||
3 │
|
||
╰────
|
||
|
||
× TS(1245): Method 'method' cannot have an implementation because it is marked abstract.
|
||
╭─[misc/fail/oxc-14013.ts:4:12]
|
||
3 │
|
||
4 │ abstract method() { }
|
||
· ──────
|
||
5 │
|
||
╰────
|
||
|
||
× TS(1318): Accessor 'getter' cannot have an implementation because it is marked abstract.
|
||
╭─[misc/fail/oxc-14013.ts:6:16]
|
||
5 │
|
||
6 │ abstract get getter() {
|
||
· ──────
|
||
7 │ return 1;
|
||
╰────
|
||
|
||
× TS(1318): Accessor 'setter' cannot have an implementation because it is marked abstract.
|
||
╭─[misc/fail/oxc-14013.ts:10:16]
|
||
9 │
|
||
10 │ abstract set setter(value: number) {
|
||
· ──────
|
||
11 │
|
||
╰────
|
||
|
||
× Classes may not have a field named 'constructor'
|
||
╭─[misc/fail/oxc-14014.ts:2:12]
|
||
1 │ class Bar {
|
||
2 │ accessor 'constructor'
|
||
· ─────────────
|
||
3 │ }
|
||
╰────
|
||
|
||
× Classes may not have a field named 'constructor'
|
||
╭─[misc/fail/oxc-14014.ts:5:12]
|
||
4 │ abstract class Baz {
|
||
5 │ accessor 'constructor'
|
||
· ─────────────
|
||
6 │ }
|
||
╰────
|
||
|
||
× Expected `{` but found `;`
|
||
╭─[misc/fail/oxc-14944.ts:1:25]
|
||
1 │ const x = function foo();
|
||
· ┬
|
||
· ╰── `{` expected
|
||
╰────
|
||
|
||
× TS(1187): A parameter property may not be declared using a binding pattern.
|
||
╭─[misc/fail/oxc-16077.ts:1:22]
|
||
1 │ class A {constructor(override []){}}
|
||
· ───────────
|
||
2 │ class B {constructor(private []){}}
|
||
╰────
|
||
|
||
× TS(1187): A parameter property may not be declared using a binding pattern.
|
||
╭─[misc/fail/oxc-16077.ts:2:22]
|
||
1 │ class A {constructor(override []){}}
|
||
2 │ class B {constructor(private []){}}
|
||
· ──────────
|
||
3 │ class C {constructor(protected []){}}
|
||
╰────
|
||
|
||
× TS(1187): A parameter property may not be declared using a binding pattern.
|
||
╭─[misc/fail/oxc-16077.ts:3:22]
|
||
2 │ class B {constructor(private []){}}
|
||
3 │ class C {constructor(protected []){}}
|
||
· ────────────
|
||
4 │ class D {constructor(public []){}}
|
||
╰────
|
||
|
||
× TS(1187): A parameter property may not be declared using a binding pattern.
|
||
╭─[misc/fail/oxc-16077.ts:4:22]
|
||
3 │ class C {constructor(protected []){}}
|
||
4 │ class D {constructor(public []){}}
|
||
· ─────────
|
||
5 │ class E {constructor(readonly []){}}
|
||
╰────
|
||
|
||
× TS(1187): A parameter property may not be declared using a binding pattern.
|
||
╭─[misc/fail/oxc-16077.ts:5:22]
|
||
4 │ class D {constructor(public []){}}
|
||
5 │ class E {constructor(readonly []){}}
|
||
· ───────────
|
||
6 │ class F {constructor(private {}){}}
|
||
╰────
|
||
|
||
× TS(1187): A parameter property may not be declared using a binding pattern.
|
||
╭─[misc/fail/oxc-16077.ts:6:22]
|
||
5 │ class E {constructor(readonly []){}}
|
||
6 │ class F {constructor(private {}){}}
|
||
· ──────────
|
||
7 │ class G {constructor(public {a} = {}){}}
|
||
╰────
|
||
|
||
× TS(1187): A parameter property may not be declared using a binding pattern.
|
||
╭─[misc/fail/oxc-16077.ts:7:22]
|
||
6 │ class F {constructor(private {}){}}
|
||
7 │ class G {constructor(public {a} = {}){}}
|
||
· ───────────────
|
||
8 │ class H {constructor(readonly [b] = []){}}
|
||
╰────
|
||
|
||
× TS(1187): A parameter property may not be declared using a binding pattern.
|
||
╭─[misc/fail/oxc-16077.ts:8:22]
|
||
7 │ class G {constructor(public {a} = {}){}}
|
||
8 │ class H {constructor(readonly [b] = []){}}
|
||
· ─────────────────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/oxc-169.js:2:1]
|
||
1 │ 1<(V=82<<t-j0<(V=$<LBI<(V=ut<I<(V=$<LBI<(V=uIV=82<<t-j0<(V=$<LBI<(V=ut<I<(V=$<LBI<(V<II>
|
||
╰────
|
||
|
||
× Identifier `f` has already been declared
|
||
╭─[misc/fail/oxc-18231.mjs:1:10]
|
||
1 │ function f() {}
|
||
· ┬
|
||
· ╰── `f` has already been declared here
|
||
2 │ function f() {}
|
||
· ┬
|
||
· ╰── It can not be redeclared here
|
||
3 │
|
||
╰────
|
||
|
||
× Identifier `g` has already been declared
|
||
╭─[misc/fail/oxc-18231.mjs:4:5]
|
||
3 │
|
||
4 │ var g;
|
||
· ┬
|
||
· ╰── `g` has already been declared here
|
||
5 │ function g() {}
|
||
· ┬
|
||
· ╰── It can not be redeclared here
|
||
╰────
|
||
|
||
× Expected `(` but found `:`
|
||
╭─[misc/fail/oxc-1942-1.ts:2:8]
|
||
1 │ class Foo {
|
||
2 │ get x: () => {
|
||
· ┬
|
||
· ╰── `(` expected
|
||
3 │ return 5;
|
||
╰────
|
||
|
||
× Expected `(` but found `:`
|
||
╭─[misc/fail/oxc-1942-2.ts:2:8]
|
||
1 │ class Foo {
|
||
2 │ set x: (v: number) => {}
|
||
· ┬
|
||
· ╰── `(` expected
|
||
3 │ }
|
||
╰────
|
||
|
||
× A class name is required.
|
||
╭─[misc/fail/oxc-2144.js:1:1]
|
||
1 │ class {}
|
||
· ─────
|
||
2 │ export class {}
|
||
╰────
|
||
|
||
× A class name is required.
|
||
╭─[misc/fail/oxc-2144.js:2:8]
|
||
1 │ class {}
|
||
2 │ export class {}
|
||
· ─────
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/oxc-22515.js:1:14]
|
||
1 │ class extends,{
|
||
· ─
|
||
╰────
|
||
|
||
× Optional declaration is not allowed here
|
||
╭─[misc/fail/oxc-2253.ts:1:8]
|
||
1 │ const a? = "A"
|
||
· ─
|
||
2 │ const [b]? = ["B"]
|
||
╰────
|
||
help: Remove the `?`
|
||
|
||
× Optional declaration is not allowed here
|
||
╭─[misc/fail/oxc-2253.ts:2:10]
|
||
1 │ const a? = "A"
|
||
2 │ const [b]? = ["B"]
|
||
· ─
|
||
3 │ const { c }? = { c: "C" }
|
||
╰────
|
||
help: Remove the `?`
|
||
|
||
× Optional declaration is not allowed here
|
||
╭─[misc/fail/oxc-2253.ts:3:12]
|
||
2 │ const [b]? = ["B"]
|
||
3 │ const { c }? = { c: "C" }
|
||
· ─
|
||
4 │
|
||
╰────
|
||
help: Remove the `?`
|
||
|
||
× Optional declaration is not allowed here
|
||
╭─[misc/fail/oxc-2253.ts:5:13]
|
||
4 │
|
||
5 │ const d ? = "A"
|
||
· ─
|
||
6 │ const [e, f] ? = ["B"]
|
||
╰────
|
||
help: Remove the `?`
|
||
|
||
× Optional declaration is not allowed here
|
||
╭─[misc/fail/oxc-2253.ts:6:19]
|
||
5 │ const d ? = "A"
|
||
6 │ const [e, f] ? = ["B"]
|
||
· ─
|
||
7 │ const { g, h } ? = { c: "C" }
|
||
╰────
|
||
help: Remove the `?`
|
||
|
||
× Optional declaration is not allowed here
|
||
╭─[misc/fail/oxc-2253.ts:7:22]
|
||
6 │ const [e, f] ? = ["B"]
|
||
7 │ const { g, h } ? = { c: "C" }
|
||
· ─
|
||
╰────
|
||
help: Remove the `?`
|
||
|
||
× The keyword 'await' is reserved
|
||
╭─[misc/fail/oxc-22684.js:9:7]
|
||
8 │ export default class C {
|
||
9 │ x = await + 1;
|
||
· ─────
|
||
10 │ }
|
||
╰────
|
||
note: The identifier `await` is reserved in module code
|
||
|
||
× TS(1255): A definite assignment assertion '!' is not permitted in this context.
|
||
╭─[misc/fail/oxc-23170.ts:2:16]
|
||
1 │ declare class AmbientAccessor {
|
||
2 │ accessor prop!: string;
|
||
· ─
|
||
3 │ }
|
||
╰────
|
||
|
||
× TS(1255): A definite assignment assertion '!' is not permitted in this context.
|
||
╭─[misc/fail/oxc-23170.ts:6:25]
|
||
5 │ abstract class AbstractAccessor {
|
||
6 │ abstract accessor prop!: string;
|
||
· ─
|
||
7 │ }
|
||
╰────
|
||
|
||
× Empty parenthesized expression
|
||
╭─[misc/fail/oxc-232.js:1:5]
|
||
1 │ x = (/* a */)
|
||
· ─────────
|
||
╰────
|
||
|
||
× Cannot use new with dynamic import
|
||
╭─[misc/fail/oxc-23458.js:1:5]
|
||
1 │ new import('').prop;
|
||
· ───────────────
|
||
2 │ new import.source('<module source>').prop;
|
||
╰────
|
||
help: Wrap this with parenthesis
|
||
|
||
× Cannot use new with dynamic import
|
||
╭─[misc/fail/oxc-23458.js:2:5]
|
||
1 │ new import('').prop;
|
||
2 │ new import.source('<module source>').prop;
|
||
· ─────────────────────────────────────
|
||
3 │ new import.defer('./empty_FIXTURE.js').prop;
|
||
╰────
|
||
help: Wrap this with parenthesis
|
||
|
||
× Cannot use new with dynamic import
|
||
╭─[misc/fail/oxc-23458.js:3:5]
|
||
2 │ new import.source('<module source>').prop;
|
||
3 │ new import.defer('./empty_FIXTURE.js').prop;
|
||
· ───────────────────────────────────────
|
||
4 │ new import('x').prop``;
|
||
╰────
|
||
help: Wrap this with parenthesis
|
||
|
||
× Cannot use new with dynamic import
|
||
╭─[misc/fail/oxc-23458.js:4:5]
|
||
3 │ new import.defer('./empty_FIXTURE.js').prop;
|
||
4 │ new import('x').prop``;
|
||
· ──────────────────
|
||
╰────
|
||
help: Wrap this with parenthesis
|
||
|
||
× Cannot use new with dynamic import
|
||
╭─[misc/fail/oxc-23458.ts:1:5]
|
||
1 │ new import('x').prop!;
|
||
· ─────────────────
|
||
2 │ new import('x').prop as Foo;
|
||
╰────
|
||
help: Wrap this with parenthesis
|
||
|
||
× Cannot use new with dynamic import
|
||
╭─[misc/fail/oxc-23458.ts:2:5]
|
||
1 │ new import('x').prop!;
|
||
2 │ new import('x').prop as Foo;
|
||
· ────────────────
|
||
3 │ new import('x').prop satisfies Foo;
|
||
╰────
|
||
help: Wrap this with parenthesis
|
||
|
||
× Cannot use new with dynamic import
|
||
╭─[misc/fail/oxc-23458.ts:3:5]
|
||
2 │ new import('x').prop as Foo;
|
||
3 │ new import('x').prop satisfies Foo;
|
||
· ────────────────
|
||
╰────
|
||
help: Wrap this with parenthesis
|
||
|
||
× Expected `]` but found `EOF`
|
||
╭─[misc/fail/oxc-23670.ts:2:1]
|
||
1 │ <[m?,
|
||
╰────
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/oxc-23681.js:4:7]
|
||
3 │ var prefix = 'fas';
|
||
4 │ export()s.height = height;
|
||
· ─
|
||
╰────
|
||
|
||
× Expected 'with' in import type options
|
||
╭─[misc/fail/oxc-2394.ts:20:22]
|
||
19 │ export type LocalInterface =
|
||
20 │ & import("pkg", {"resolution-mode": "require"}).RequireInterface
|
||
· ─────────────────
|
||
21 │ & import("pkg", {"resolution-mode": "import"}).ImportInterface;
|
||
╰────
|
||
|
||
× Expected 'with' in import type options
|
||
╭─[misc/fail/oxc-2394.ts:21:22]
|
||
20 │ & import("pkg", {"resolution-mode": "require"}).RequireInterface
|
||
21 │ & import("pkg", {"resolution-mode": "import"}).ImportInterface;
|
||
· ─────────────────
|
||
22 │
|
||
╰────
|
||
|
||
× Expected 'with' in import type options
|
||
╭─[misc/fail/oxc-2394.ts:23:49]
|
||
22 │
|
||
23 │ export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface);
|
||
· ─────────────────
|
||
24 │ export const b = (null as any as import("pkg", {"resolution-mode": "import"}).ImportInterface);
|
||
╰────
|
||
|
||
× Expected 'with' in import type options
|
||
╭─[misc/fail/oxc-2394.ts:24:49]
|
||
23 │ export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface);
|
||
24 │ export const b = (null as any as import("pkg", {"resolution-mode": "import"}).ImportInterface);
|
||
· ─────────────────
|
||
25 │
|
||
╰────
|
||
|
||
× Expected `{` but found `[`
|
||
╭─[misc/fail/oxc-2394.ts:38:21]
|
||
37 │ export type LocalInterface =
|
||
38 │ & import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface
|
||
· ┬
|
||
· ╰── `{` expected
|
||
39 │ & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface;
|
||
╰────
|
||
|
||
× TS(1264): Declarations with definite assignment assertions must also have type annotations.
|
||
╭─[misc/fail/oxc-24503.ts:2:20]
|
||
1 │ class Basic {
|
||
2 │ accessor noType!;
|
||
· ─
|
||
3 │ accessor initialized! = 1;
|
||
╰────
|
||
|
||
× TS(1263): Declarations with initializers cannot also have definite assignment assertions.
|
||
╭─[misc/fail/oxc-24503.ts:3:25]
|
||
2 │ accessor noType!;
|
||
3 │ accessor initialized! = 1;
|
||
· ─
|
||
4 │ accessor typed!: number;
|
||
╰────
|
||
|
||
× TS(1255): A definite assignment assertion '!' is not permitted in this context.
|
||
╭─[misc/fail/oxc-24503.ts:5:32]
|
||
4 │ accessor typed!: number;
|
||
5 │ static accessor staticTyped!: number;
|
||
· ─
|
||
6 │ static accessor staticNoType!;
|
||
╰────
|
||
|
||
× TS(1264): Declarations with definite assignment assertions must also have type annotations.
|
||
╭─[misc/fail/oxc-24503.ts:6:33]
|
||
5 │ static accessor staticTyped!: number;
|
||
6 │ static accessor staticNoType!;
|
||
· ─
|
||
7 │ static accessor staticInitialized! = 1;
|
||
╰────
|
||
|
||
× TS(1263): Declarations with initializers cannot also have definite assignment assertions.
|
||
╭─[misc/fail/oxc-24503.ts:7:38]
|
||
6 │ static accessor staticNoType!;
|
||
7 │ static accessor staticInitialized! = 1;
|
||
· ─
|
||
8 │ }
|
||
╰────
|
||
|
||
× TS(1255): A definite assignment assertion '!' is not permitted in this context.
|
||
╭─[misc/fail/oxc-24503.ts:11:28]
|
||
10 │ abstract class Abstract {
|
||
11 │ abstract accessor value!: number;
|
||
· ─
|
||
12 │ }
|
||
╰────
|
||
|
||
× TS(1255): A definite assignment assertion '!' is not permitted in this context.
|
||
╭─[misc/fail/oxc-24503.ts:15:19]
|
||
14 │ declare class Ambient {
|
||
15 │ accessor value!: number;
|
||
· ─
|
||
16 │ }
|
||
╰────
|
||
|
||
× TS(1243): 'accessor' modifier cannot be used with 'declare' modifier.
|
||
╭─[misc/fail/oxc-24503.ts:19:5]
|
||
18 │ class DeclareMember {
|
||
19 │ declare accessor typed!: number;
|
||
· ───────
|
||
20 │ declare accessor untyped!;
|
||
╰────
|
||
help: Allowed modifiers are: private, protected, public, static, abstract, override
|
||
|
||
× TS(1243): 'accessor' modifier cannot be used with 'declare' modifier.
|
||
╭─[misc/fail/oxc-24503.ts:20:5]
|
||
19 │ declare accessor typed!: number;
|
||
20 │ declare accessor untyped!;
|
||
· ───────
|
||
21 │ declare accessor initialized! = 1;
|
||
╰────
|
||
help: Allowed modifiers are: private, protected, public, static, abstract, override
|
||
|
||
× TS(1243): 'accessor' modifier cannot be used with 'declare' modifier.
|
||
╭─[misc/fail/oxc-24503.ts:21:5]
|
||
20 │ declare accessor untyped!;
|
||
21 │ declare accessor initialized! = 1;
|
||
· ───────
|
||
22 │ }
|
||
╰────
|
||
help: Allowed modifiers are: private, protected, public, static, abstract, override
|
||
|
||
× for-in loop variable declaration may not have an initializer
|
||
╭─[misc/fail/oxc-25149-const-initializer.js:1:6]
|
||
1 │ for (const a = 1 in b);
|
||
· ───────────
|
||
╰────
|
||
|
||
× for-in loop variable declaration may not have an initializer
|
||
╭─[misc/fail/oxc-25149-let-initializer.js:1:6]
|
||
1 │ for (let a = 1 in b);
|
||
· ─────────
|
||
╰────
|
||
|
||
× for-in loop variable declaration may not have an initializer
|
||
╭─[misc/fail/oxc-25149-strict-var-initializer.cjs:3:6]
|
||
2 │ "use strict";
|
||
3 │ for (var a = 1 in b);
|
||
· ─────────
|
||
╰────
|
||
|
||
× for-in loop variable declaration may not have an initializer
|
||
╭─[misc/fail/oxc-25149-var-array-pattern-initializer.js:1:6]
|
||
1 │ for (var [a] = [] in b);
|
||
· ────────────
|
||
╰────
|
||
|
||
× for-in loop variable declaration may not have an initializer
|
||
╭─[misc/fail/oxc-25149-var-object-pattern-initializer.js:1:6]
|
||
1 │ for (var { a } = {} in b);
|
||
· ──────────────
|
||
╰────
|
||
|
||
× TS(1092): Type parameters cannot appear on a constructor declaration
|
||
╭─[misc/fail/oxc-25692.ts:2:16]
|
||
1 │ class A {
|
||
2 │ 'constructor'<T>() {}
|
||
· ───
|
||
3 │ }
|
||
╰────
|
||
help: Instead, add type parameters to the class itself
|
||
|
||
× Constructor can't have get/set modifier
|
||
╭─[misc/fail/oxc-25692.ts:6:7]
|
||
5 │ class B {
|
||
6 │ get 'constructor'<T>() {}
|
||
· ─────────────
|
||
7 │ }
|
||
╰────
|
||
|
||
× TS(1094): An accessor cannot have type parameters.
|
||
╭─[misc/fail/oxc-25692.ts:6:20]
|
||
5 │ class B {
|
||
6 │ get 'constructor'<T>() {}
|
||
· ───
|
||
7 │ }
|
||
╰────
|
||
|
||
× Expected `:` but found `[`
|
||
╭─[misc/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
|
||
╰────
|
||
|
||
× Expected corresponding JSX closing tag for 'Apple'.
|
||
╭─[misc/fail/oxc-3528.jsx:1:18]
|
||
1 │ let a = <Apple></Banana>;
|
||
· ──┬── ───┬──
|
||
· │ ╰── Expected `</Apple>`
|
||
· ╰── Opened here
|
||
2 │
|
||
╰────
|
||
|
||
× Expected corresponding JSX closing tag for 'Apple:Orange'.
|
||
╭─[misc/fail/oxc-3528.jsx:3:25]
|
||
2 │
|
||
3 │ let b = <Apple:Orange></Banana>;
|
||
· ──────┬───── ───┬──
|
||
· │ ╰── Expected `</Apple:Orange>`
|
||
· ╰── Opened here
|
||
4 │
|
||
╰────
|
||
|
||
× Expected corresponding JSX closing tag for 'Apple.Orange'.
|
||
╭─[misc/fail/oxc-3528.jsx:5:25]
|
||
4 │
|
||
5 │ let c = <Apple.Orange></Banana>;
|
||
· ──────┬───── ───┬──
|
||
· │ ╰── Expected `</Apple.Orange>`
|
||
· ╰── Opened here
|
||
╰────
|
||
|
||
× 'readonly' modifier cannot be used here.
|
||
╭─[misc/fail/oxc-3948.ts:2:5]
|
||
1 │ const x = {
|
||
2 │ readonly foo() {
|
||
· ────────
|
||
3 │
|
||
╰────
|
||
help: Only 'async' modifier is allowed here.
|
||
|
||
× 'public' modifier cannot be used here.
|
||
╭─[misc/fail/oxc-3948.ts:5:5]
|
||
4 │ },
|
||
5 │ public readonly async bar() {
|
||
· ──────
|
||
6 │
|
||
╰────
|
||
help: Only 'async' modifier is allowed here.
|
||
|
||
× 'readonly' modifier cannot be used here.
|
||
╭─[misc/fail/oxc-3948.ts:5:12]
|
||
4 │ },
|
||
5 │ public readonly async bar() {
|
||
· ────────
|
||
6 │
|
||
╰────
|
||
help: Only 'async' modifier is allowed here.
|
||
|
||
× 'public' modifier cannot be used here.
|
||
╭─[misc/fail/oxc-3948.ts:8:5]
|
||
7 │ },
|
||
8 │ public x: 1,
|
||
· ──────
|
||
9 │ }
|
||
╰────
|
||
help: No modifiers are allowed here.
|
||
|
||
× TS(8016): Type assertion expressions can only be used in TypeScript files.
|
||
╭─[misc/fail/oxc-4111-1.js:1:1]
|
||
1 │ funtransientction as longciiConÞr>ol(cde) {
|
||
· ─────────────────────────────────
|
||
╰────
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[misc/fail/oxc-4111-1.js:1:43]
|
||
1 │ funtransientction as longciiConÞr>ol(cde) {
|
||
· ▲
|
||
╰────
|
||
help: Try inserting a semicolon here
|
||
|
||
× TS(1248): A class member cannot have the 'const' keyword.
|
||
╭─[misc/fail/oxc-4212-1.ts:1:11]
|
||
1 │ class a { const enum b(); }
|
||
· ─────
|
||
╰────
|
||
help: Did you mean `readonly`?
|
||
|
||
× Expected `;` but found `Identifier`
|
||
╭─[misc/fail/oxc-4212-1.ts:1:22]
|
||
1 │ class a { const enum b(); }
|
||
· ┬
|
||
· ╰── `;` expected
|
||
╰────
|
||
|
||
× TS(1164): Computed property names are not allowed in enums.
|
||
╭─[misc/fail/oxc-4449-1.ts:1:11]
|
||
1 │ enum A { [foo] } // Computed property names are not allowed in enums
|
||
· ───
|
||
╰────
|
||
|
||
× TS(2452): An enum member cannot have a numeric name.
|
||
╭─[misc/fail/oxc-4449-2.ts:1:11]
|
||
1 │ enum B { [1] } // An enum member cannot have a numeric name.
|
||
· ─
|
||
╰────
|
||
|
||
× TS(2452): An enum member cannot have a numeric name.
|
||
╭─[misc/fail/oxc-4449-3.ts:1:10]
|
||
1 │ enum C { 1 } // An enum member cannot have a numeric name.
|
||
· ─
|
||
╰────
|
||
|
||
× TS(1164): Computed property names are not allowed in enums.
|
||
╭─[misc/fail/oxc-4449-4.ts:1:11]
|
||
1 │ enum D { [`test${foo}`] } // Computed property names are not allowed in enums.
|
||
· ────────────
|
||
╰────
|
||
|
||
× TS(1164): Computed property names are not allowed in enums.
|
||
╭─[misc/fail/oxc-4449-5.ts:1:10]
|
||
1 │ enum E { `baz` = 2 } // Enum member expected.
|
||
· ─────
|
||
╰────
|
||
|
||
× TS(1164): Computed property names are not allowed in enums.
|
||
╭─[misc/fail/oxc-4449-6.ts:1:11]
|
||
1 │ enum F { ['baz' + 'baz'] // Computed property names are not allowed in enums.
|
||
· ─────────────
|
||
╰────
|
||
|
||
× Label `Test` has already been declared
|
||
╭─[misc/fail/oxc-5036.js:1:1]
|
||
1 │ Test: {
|
||
· ──┬─
|
||
· ╰── `Test` has already been declared here
|
||
2 │ Test: console.log('Test');
|
||
· ──┬─
|
||
· ╰── It can not be redeclared here
|
||
3 │ }
|
||
╰────
|
||
|
||
× TS(1276): An 'accessor' property cannot be declared optional.
|
||
╭─[misc/fail/oxc-5177.ts:4:15]
|
||
3 │ export class Bang {
|
||
4 │ accessor x?: Foo
|
||
· ─
|
||
5 │ }
|
||
╰────
|
||
help: Remove this `?`
|
||
|
||
× Identifiers in JSX cannot contain hyphens
|
||
╭─[misc/fail/oxc-5355.jsx:1:6]
|
||
1 │ <Foo.bar-baz />
|
||
· ───────
|
||
╰────
|
||
help: Remove the hyphen from the identifier
|
||
|
||
× Optional declaration is not allowed here
|
||
╭─[misc/fail/oxc-5955-1.ts:1:8]
|
||
1 │ const x?: number = 1;
|
||
· ─
|
||
2 │
|
||
╰────
|
||
help: Remove the `?`
|
||
|
||
× Unexpected token
|
||
╭─[misc/fail/oxc-5955-2.ts:3:8]
|
||
2 │ interface B {
|
||
3 │ e()?: number;
|
||
· ─
|
||
4 │ }
|
||
╰────
|
||
|
||
× TS(1021): An index signature must have a type annotation.
|
||
╭─[misc/fail/oxc-5955-3.ts:2:5]
|
||
1 │ class A {
|
||
2 │ [key: string]?: number;
|
||
· ─────────────
|
||
3 │ }
|
||
╰────
|
||
|
||
× Private field '#x' must be declared in an enclosing class
|
||
╭─[misc/fail/oxc-7582.js:4:9]
|
||
3 │ method() {
|
||
4 │ obj.#x;
|
||
· ──
|
||
5 │ }
|
||
╰────
|
||
|
||
× Identifier expected after '?.'
|
||
╭─[misc/fail/oxc-9497.js:2:8]
|
||
1 │ let repro = {};
|
||
2 │ repro.f?.
|
||
· ──
|
||
╰────
|
||
help: Add an identifier after '?.'
|
||
|
||
× Identifier expected after '?.'
|
||
╭─[misc/fail/oxc-9525-1.js:1:2]
|
||
1 │ x?.;
|
||
· ──
|
||
╰────
|
||
help: Add an identifier after '?.'
|
||
|
||
× Identifier expected after '?.'
|
||
╭─[misc/fail/oxc-9525-2.js:1:3]
|
||
1 │ [x?.];
|
||
· ──
|
||
╰────
|
||
help: Add an identifier after '?.'
|
||
|
||
× Identifier expected after '?.'
|
||
╭─[misc/fail/oxc-9525-3.js:2:4]
|
||
1 │ () => {
|
||
2 │ x?.
|
||
· ──
|
||
3 │ }
|
||
╰────
|
||
help: Add an identifier after '?.'
|
||
|
||
× TS(2398): 'constructor' cannot be used as a parameter property name.
|
||
╭─[misc/fail/oxc-ts-2398.ts:1:29]
|
||
1 │ class A {constructor(public constructor){}}
|
||
· ───────────
|
||
2 │ class B {constructor(readonly constructor){}}
|
||
╰────
|
||
|
||
× TS(2398): 'constructor' cannot be used as a parameter property name.
|
||
╭─[misc/fail/oxc-ts-2398.ts:2:31]
|
||
1 │ class A {constructor(public constructor){}}
|
||
2 │ class B {constructor(readonly constructor){}}
|
||
· ───────────
|
||
╰────
|
||
|
||
× TS(1024): 'readonly' modifier can only appear on a property declaration or index signature.
|
||
╭─[misc/fail/readonly-constructor-ambient.ts:1:19]
|
||
1 │ declare class C { readonly constructor(); }
|
||
· ────────
|
||
╰────
|
||
|
||
× TS(1024): 'readonly' modifier can only appear on a property declaration or index signature.
|
||
╭─[misc/fail/readonly-constructor-overload.ts:2:3]
|
||
1 │ class C {
|
||
2 │ readonly constructor(value: number);
|
||
· ────────
|
||
3 │ constructor(value: number) {}
|
||
╰────
|
||
|
||
× TS(1024): 'readonly' modifier can only appear on a property declaration or index signature.
|
||
╭─[misc/fail/readonly-constructor-quoted.ts:1:18]
|
||
1 │ class C { public readonly "constructor"() {} }
|
||
· ────────
|
||
╰────
|
||
|
||
× TS(1024): 'readonly' modifier can only appear on a property declaration or index signature.
|
||
╭─[misc/fail/readonly-constructor.ts:1:11]
|
||
1 │ class C { readonly constructor() {} }
|
||
· ────────
|
||
╰────
|
||
|
||
× Invalid rest element target in destructuring assignment
|
||
╭─[misc/fail/rest-assignment-target.js:1:6]
|
||
1 │ ({...[]} = {});
|
||
· ──
|
||
╰────
|
||
help: Expected an identifier or member expression, like `...rest` or `...obj.prop`.
|
||
|
||
× Invalid rest element target in destructuring pattern
|
||
╭─[misc/fail/rest-binding-element.js:1:11]
|
||
1 │ const {...[]} = obj;
|
||
· ──
|
||
╰────
|
||
help: Expected an identifier, like `...rest`.
|
||
|
||
× await expression not allowed in formal parameter
|
||
╭─[misc/fail/rest-parameter-default-await-yield.js:1:26]
|
||
1 │ async function f(...[x = await 0]) {}
|
||
· ───┬───
|
||
· ╰── await expression not allowed in formal parameter
|
||
2 │ function* g(...[x = yield 0]) {}
|
||
╰────
|
||
|
||
× yield expression not allowed in formal parameter
|
||
╭─[misc/fail/rest-parameter-default-await-yield.js:2:21]
|
||
1 │ async function f(...[x = await 0]) {}
|
||
2 │ function* g(...[x = yield 0]) {}
|
||
· ───┬───
|
||
· ╰── yield expression not allowed in formal parameter
|
||
╰────
|
||
|
||
× 'using' declarations are not allowed at the top level of a script
|
||
╭─[misc/fail/script-top-level-using.js:2:1]
|
||
1 │ // 'using' is not allowed at top level in scripts
|
||
2 │ using x = {};
|
||
· ─────────────
|
||
╰────
|
||
help: Wrap this code in a block or use a module
|
||
|
||
× Cannot use 'for await' in class static initialization block
|
||
╭─[misc/fail/semantic-for-await-in-block-in-static-block.mjs:4:7]
|
||
3 │ {
|
||
4 │ for await (const x of y) {}
|
||
· ───────────────────────────
|
||
5 │ }
|
||
╰────
|
||
|
||
× Expected switch clause
|
||
╭─[misc/fail/switch-invalid-clause.js:2:3]
|
||
1 │ switch (foo) {
|
||
2 │ caze 1:
|
||
· ──┬─
|
||
· ╰── `case` or `default` clause expected here
|
||
3 │ }
|
||
╰────
|
||
help: If this is intended to be the condition for the switch statement, add `case` before it.
|
||
|
||
× Expected `,` but found `Identifier`
|
||
╭─[misc/fail/this-parameter-missing-comma-class-untyped.ts:1:18]
|
||
1 │ class C { f(this x: T) {} }
|
||
· ┬
|
||
· ╰── `,` expected
|
||
╰────
|
||
|
||
× Expected `,` but found `Identifier`
|
||
╭─[misc/fail/this-parameter-missing-comma-class.ts:1:21]
|
||
1 │ class C { f(this: T x: T) {} }
|
||
· ┬
|
||
· ╰── `,` expected
|
||
╰────
|
||
|
||
× Expected `,` but found `Identifier`
|
||
╭─[misc/fail/this-parameter-missing-comma-function-type.ts:1:19]
|
||
1 │ type F = (this: T x: T) => void;
|
||
· ┬
|
||
· ╰── `,` expected
|
||
╰────
|
||
|
||
× Expected `,` but found `Identifier`
|
||
╭─[misc/fail/this-parameter-missing-comma-function.ts:1:20]
|
||
1 │ function f(this: T x: T) {}
|
||
· ┬
|
||
· ╰── `,` expected
|
||
╰────
|
||
|
||
× Expected `,` but found `Identifier`
|
||
╭─[misc/fail/this-parameter-missing-comma-interface.ts:1:25]
|
||
1 │ interface I { f(this: T x: T): void }
|
||
· ┬
|
||
· ╰── `,` expected
|
||
╰────
|
||
|
||
× Expected `=>` but found `:`
|
||
╭─[misc/fail/ts-abstract-constructor-type-colon-separator.ts:1:26]
|
||
1 │ type F = abstract new () : number;
|
||
· ┬
|
||
· ╰── `=>` expected
|
||
╰────
|
||
|
||
× Expected `=>` but found `number`
|
||
╭─[misc/fail/ts-abstract-constructor-type-missing-separator.ts:1:27]
|
||
1 │ type F = abstract new () number;
|
||
· ───┬──
|
||
· ╰── `=>` expected
|
||
╰────
|
||
|
||
× Expected `=>` but found `+`
|
||
╭─[misc/fail/ts-abstract-constructor-type-plus-separator.ts:1:26]
|
||
1 │ type F = abstract new () + number;
|
||
· ┬
|
||
· ╰── `=>` expected
|
||
╰────
|
||
|
||
× Expected `=>` but found `:`
|
||
╭─[misc/fail/ts-constructor-type-colon-separator.ts:1:17]
|
||
1 │ type F = new () : number;
|
||
· ┬
|
||
· ╰── `=>` expected
|
||
╰────
|
||
|
||
× Expected `=>` but found `number`
|
||
╭─[misc/fail/ts-constructor-type-missing-separator.ts:1:18]
|
||
1 │ type F = new () number;
|
||
· ───┬──
|
||
· ╰── `=>` expected
|
||
╰────
|
||
|
||
× Expected `=>` but found `+`
|
||
╭─[misc/fail/ts-constructor-type-plus-separator.ts:1:17]
|
||
1 │ type F = new () + number;
|
||
· ┬
|
||
· ╰── `=>` expected
|
||
╰────
|
||
|
||
× Expected `=>` but found `:`
|
||
╭─[misc/fail/ts-function-type-colon-separator.ts:1:13]
|
||
1 │ type F = () : number;
|
||
· ┬
|
||
· ╰── `=>` expected
|
||
╰────
|
||
|
||
× Expected `=>` but found `+`
|
||
╭─[misc/fail/ts-function-type-plus-separator.ts:1:13]
|
||
1 │ type F = () + number;
|
||
· ┬
|
||
· ╰── `=>` expected
|
||
╰────
|
||
|
||
× TS(1009): Trailing comma not allowed.
|
||
╭─[misc/fail/ts-interface-invalid-heritage.ts:1:22]
|
||
1 │ interface A extends B, {}
|
||
· ─
|
||
2 │ interface B extends this {}
|
||
╰────
|
||
|
||
× TS(2499): An interface can only extend an identifier/qualified-name with optional type arguments.
|
||
╭─[misc/fail/ts-interface-invalid-heritage.ts:2:21]
|
||
1 │ interface A extends B, {}
|
||
2 │ interface B extends this {}
|
||
· ────
|
||
3 │ interface C extends this.D {}
|
||
╰────
|
||
|
||
× TS(2499): An interface can only extend an identifier/qualified-name with optional type arguments.
|
||
╭─[misc/fail/ts-interface-invalid-heritage.ts:3:21]
|
||
2 │ interface B extends this {}
|
||
3 │ interface C extends this.D {}
|
||
· ──────
|
||
╰────
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[misc/fail/ts-unerasable-as-chained.ts:4:33]
|
||
3 │ // so the trailing `*` still makes the assertion impossible to erase. Syntax error.
|
||
4 │ const x = 1 + 1 as any as number * 2;
|
||
· ▲
|
||
╰────
|
||
help: Try inserting a semicolon here
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[misc/fail/ts-unerasable-as.ts:4:26]
|
||
3 │ // trailing `*` binds tighter than the leading `+`. This is a syntax error.
|
||
4 │ const x = 1 + 1 as number * 2;
|
||
· ▲
|
||
╰────
|
||
help: Try inserting a semicolon here
|
||
|
||
× Expected a semicolon or an implicit semicolon after a statement, but found none
|
||
╭─[misc/fail/ts-unerasable-satisfies.ts:4:33]
|
||
3 │ // is a syntax error.
|
||
4 │ const x = 1 + 1 satisfies number * 2;
|
||
· ▲
|
||
╰────
|
||
help: Try inserting a semicolon here
|
||
|
||
× TS(1266): An optional element cannot follow a rest element.
|
||
╭─[misc/fail/tuple-named-rest.ts:1:27]
|
||
1 │ type OptionalAfterRest = [...a: string[], b?: number];
|
||
· ───────┬────── ─────┬────
|
||
· │ ╰── Optional element here
|
||
· ╰── Rest element seen here
|
||
2 │ type RestAfterRest = [...a: string[], ...b: number[]];
|
||
╰────
|
||
|
||
× TS(1265): A rest element cannot follow another rest element.
|
||
╭─[misc/fail/tuple-named-rest.ts:2:23]
|
||
1 │ type OptionalAfterRest = [...a: string[], b?: number];
|
||
2 │ type RestAfterRest = [...a: string[], ...b: number[]];
|
||
· ───────┬────── ───────┬──────
|
||
· │ ╰── Second rest element here
|
||
· ╰── First seen here
|
||
3 │ type NamedRestAfterUnnamedRest = [...string[], ...b: number[]];
|
||
╰────
|
||
|
||
× TS(1265): A rest element cannot follow another rest element.
|
||
╭─[misc/fail/tuple-named-rest.ts:3:35]
|
||
2 │ type RestAfterRest = [...a: string[], ...b: number[]];
|
||
3 │ type NamedRestAfterUnnamedRest = [...string[], ...b: number[]];
|
||
· ─────┬───── ───────┬──────
|
||
· │ ╰── Second rest element here
|
||
· ╰── First seen here
|
||
4 │ type UnnamedRestAfterNamedRest = [...a: string[], ...number[]];
|
||
╰────
|
||
|
||
× TS(1265): A rest element cannot follow another rest element.
|
||
╭─[misc/fail/tuple-named-rest.ts:4:35]
|
||
3 │ type NamedRestAfterUnnamedRest = [...string[], ...b: number[]];
|
||
4 │ type UnnamedRestAfterNamedRest = [...a: string[], ...number[]];
|
||
· ───────┬────── ─────┬─────
|
||
· │ ╰── Second rest element here
|
||
· ╰── First seen here
|
||
╰────
|
||
|
||
× TS(8011): Type arguments can only be used in TypeScript files.
|
||
╭─[misc/fail/type-arguments-in-js.js:1:18]
|
||
1 │ class A extends B<C> {}
|
||
· ───
|
||
╰────
|