Skip to content

Commit ca7f78b

Browse files
Andysandersn
authored andcommitted
Fix typo (#28526)
1 parent b3b9272 commit ca7f78b

File tree

6 files changed

+38
-38
lines changed

6 files changed

+38
-38
lines changed

tests/baselines/reference/unusedSwitchStatment.errors.txt renamed to tests/baselines/reference/unusedSwitchStatement.errors.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
tests/cases/compiler/unusedSwitchStatment.ts(2,10): error TS2678: Type '0' is not comparable to type '1'.
2-
tests/cases/compiler/unusedSwitchStatment.ts(3,13): error TS6133: 'x' is declared but its value is never read.
3-
tests/cases/compiler/unusedSwitchStatment.ts(6,15): error TS6133: 'c' is declared but its value is never read.
4-
tests/cases/compiler/unusedSwitchStatment.ts(9,13): error TS6133: 'z' is declared but its value is never read.
5-
tests/cases/compiler/unusedSwitchStatment.ts(14,10): error TS2678: Type '0' is not comparable to type '2'.
6-
tests/cases/compiler/unusedSwitchStatment.ts(15,13): error TS6133: 'x' is declared but its value is never read.
7-
tests/cases/compiler/unusedSwitchStatment.ts(16,10): error TS2678: Type '1' is not comparable to type '2'.
1+
tests/cases/compiler/unusedSwitchStatement.ts(2,10): error TS2678: Type '0' is not comparable to type '1'.
2+
tests/cases/compiler/unusedSwitchStatement.ts(3,13): error TS6133: 'x' is declared but its value is never read.
3+
tests/cases/compiler/unusedSwitchStatement.ts(6,15): error TS6133: 'c' is declared but its value is never read.
4+
tests/cases/compiler/unusedSwitchStatement.ts(9,13): error TS6133: 'z' is declared but its value is never read.
5+
tests/cases/compiler/unusedSwitchStatement.ts(14,10): error TS2678: Type '0' is not comparable to type '2'.
6+
tests/cases/compiler/unusedSwitchStatement.ts(15,13): error TS6133: 'x' is declared but its value is never read.
7+
tests/cases/compiler/unusedSwitchStatement.ts(16,10): error TS2678: Type '1' is not comparable to type '2'.
88

99

10-
==== tests/cases/compiler/unusedSwitchStatment.ts (7 errors) ====
10+
==== tests/cases/compiler/unusedSwitchStatement.ts (7 errors) ====
1111
switch (1) {
1212
case 0:
1313
~

tests/baselines/reference/unusedSwitchStatment.js renamed to tests/baselines/reference/unusedSwitchStatement.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//// [unusedSwitchStatment.ts]
1+
//// [unusedSwitchStatement.ts]
22
switch (1) {
33
case 0:
44
let x;
@@ -18,7 +18,7 @@ switch (2) {
1818
x++;
1919
}
2020

21-
//// [unusedSwitchStatment.js]
21+
//// [unusedSwitchStatement.js]
2222
switch (1) {
2323
case 0:
2424
var x = void 0;
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
=== tests/cases/compiler/unusedSwitchStatement.ts ===
2+
switch (1) {
3+
case 0:
4+
let x;
5+
>x : Symbol(x, Decl(unusedSwitchStatement.ts, 2, 11))
6+
7+
break;
8+
case 1:
9+
const c = 1;
10+
>c : Symbol(c, Decl(unusedSwitchStatement.ts, 5, 13))
11+
12+
break;
13+
default:
14+
let z = 2;
15+
>z : Symbol(z, Decl(unusedSwitchStatement.ts, 8, 11))
16+
}
17+
18+
19+
switch (2) {
20+
case 0:
21+
let x;
22+
>x : Symbol(x, Decl(unusedSwitchStatement.ts, 14, 11))
23+
24+
case 1:
25+
x++;
26+
>x : Symbol(x, Decl(unusedSwitchStatement.ts, 14, 11))
27+
}

tests/baselines/reference/unusedSwitchStatment.types renamed to tests/baselines/reference/unusedSwitchStatement.types

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
=== tests/cases/compiler/unusedSwitchStatment.ts ===
1+
=== tests/cases/compiler/unusedSwitchStatement.ts ===
22
switch (1) {
33
>1 : 1
44

tests/baselines/reference/unusedSwitchStatment.symbols

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)