File tree 1 file changed +13
-1
lines changed
tests/baselines/reference 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(6,6): error TS1003: Identifier expected.
2
2
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(6,11): error TS1005: ';' expected.
3
+ tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(2,6): error TS2457: Type alias name cannot be 'any'
4
+ tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(3,6): error TS2457: Type alias name cannot be 'number'
5
+ tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(4,6): error TS2457: Type alias name cannot be 'boolean'
6
+ tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(5,6): error TS2457: Type alias name cannot be 'string'
3
7
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(6,13): error TS2304: Cannot find name 'I'.
4
8
5
9
6
- ==== tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts (3 errors) ====
10
+ ==== tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts (7 errors) ====
7
11
interface I {}
8
12
type any = I;
13
+ ~~~
14
+ !!! error TS2457: Type alias name cannot be 'any'
9
15
type number = I;
16
+ ~~~~~~
17
+ !!! error TS2457: Type alias name cannot be 'number'
10
18
type boolean = I;
19
+ ~~~~~~~
20
+ !!! error TS2457: Type alias name cannot be 'boolean'
11
21
type string = I;
22
+ ~~~~~~
23
+ !!! error TS2457: Type alias name cannot be 'string'
12
24
type void = I;
13
25
~~~~
14
26
!!! error TS1003: Identifier expected.
You can’t perform that action at this time.
0 commit comments