TypeScript/tests/baselines/reference/parserErrorRecovery_SwitchStatement2.errors.txt

18 lines
858 B
Plaintext

tests/cases/conformance/parser/ecmascript5/ErrorRecovery/SwitchStatements/parserErrorRecovery_SwitchStatement2.ts(3,13): error TS2304: Cannot find name 'e'.
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/SwitchStatements/parserErrorRecovery_SwitchStatement2.ts(5,1): error TS1130: 'case' or 'default' expected.
tests/cases/conformance/parser/ecmascript5/ErrorRecovery/SwitchStatements/parserErrorRecovery_SwitchStatement2.ts(6,2): error TS1005: '}' expected.
==== tests/cases/conformance/parser/ecmascript5/ErrorRecovery/SwitchStatements/parserErrorRecovery_SwitchStatement2.ts (3 errors) ====
class C {
constructor() {
switch (e) {
~
!!! error TS2304: Cannot find name 'e'.
class D {
~~~~~
!!! error TS1130: 'case' or 'default' expected.
}
!!! error TS1005: '}' expected.