1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(3,9): error TS18037: Await expression cannot be used inside a class static block.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(3,14): error TS1109: Expression expected.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(6,9): error TS18037: Await expression cannot be used inside a class static block.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(9,13): error TS18037: Await expression cannot be used inside a class static block.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(9,18): error TS1109: Expression expected.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(13,14): error TS18037: Await expression cannot be used inside a class static block.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(13,19): error TS1109: Expression expected.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(17,18): error TS1005: ':' expected.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(20,9): error TS18037: Await expression cannot be used inside a class static block.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(20,14): error TS1109: Expression expected.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(21,15): error TS1003: Identifier expected.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(21,15): error TS18037: Await expression cannot be used inside a class static block.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(21,20): error TS1109: Expression expected.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(25,21): error TS18037: Await expression cannot be used inside a class static block.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(25,26): error TS1109: Expression expected.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(25,28): error TS1005: ';' expected.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(26,21): error TS18037: Await expression cannot be used inside a class static block.
tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts(26,27): error TS1109: Expression expected.
==== tests/cases/conformance/classes/classStaticBlock/classStaticBlock26.ts (18 errors) ====
class C {
static {
await; // illegal
~~~~~
!!! error TS18037: Await expression cannot be used inside a class static block.
~
!!! error TS1109: Expression expected.
}
static {
await (1); // illegal
~~~~~~~~~
!!! error TS18037: Await expression cannot be used inside a class static block.
}
static {
({ [await]: 1 }); // illegal
~~~~~
!!! error TS18037: Await expression cannot be used inside a class static block.
~
!!! error TS1109: Expression expected.
}
static {
class D {
[await] = 1; // illegal (computed property names are evaluated outside of a class body
~~~~~
!!! error TS18037: Await expression cannot be used inside a class static block.
~
!!! error TS1109: Expression expected.
};
}
static {
({ await }); // illegal short-hand property reference
~
!!! error TS1005: ':' expected.
}
static {
await: // illegal, 'await' cannot be used as a label
~~~~~
!!! error TS18037: Await expression cannot be used inside a class static block.
~
!!! error TS1109: Expression expected.
break await; // illegal, 'await' cannot be used as a label
~~~~~
!!! error TS1003: Identifier expected.
~~~~~
!!! error TS18037: Await expression cannot be used inside a class static block.
~
!!! error TS1109: Expression expected.
}
static {
function f(await) { }
const ff = (await) => { }
~~~~~
!!! error TS18037: Await expression cannot be used inside a class static block.
~
!!! error TS1109: Expression expected.
~~
!!! error TS1005: ';' expected.
const fff = await => { }
~~~~~
!!! error TS18037: Await expression cannot be used inside a class static block.
~~
!!! error TS1109: Expression expected.
}
}
|