Skip to content

Commit d86d520

Browse files
committed
merge with master
1 parent b1aaccd commit d86d520

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/baselines/reference/reservedNamesInAliases.errors.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(6,6): error TS1003: Identifier expected.
22
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'
37
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(6,13): error TS2304: Cannot find name 'I'.
48

59

6-
==== tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts (3 errors) ====
10+
==== tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts (7 errors) ====
711
interface I {}
812
type any = I;
13+
~~~
14+
!!! error TS2457: Type alias name cannot be 'any'
915
type number = I;
16+
~~~~~~
17+
!!! error TS2457: Type alias name cannot be 'number'
1018
type boolean = I;
19+
~~~~~~~
20+
!!! error TS2457: Type alias name cannot be 'boolean'
1121
type string = I;
22+
~~~~~~
23+
!!! error TS2457: Type alias name cannot be 'string'
1224
type void = I;
1325
~~~~
1426
!!! error TS1003: Identifier expected.

0 commit comments

Comments
 (0)