File: reservedNamesInAliases.errors.txt

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (38 lines) | stat: -rw-r--r-- 1,964 bytes parent folder | download | duplicates (2)
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
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(2,6): error TS2457: Type alias name cannot be 'any'.
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(3,6): error TS2457: Type alias name cannot be 'number'.
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(4,6): error TS2457: Type alias name cannot be 'boolean'.
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(5,6): error TS2457: Type alias name cannot be 'string'.
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(6,1): error TS2304: Cannot find name 'type'.
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(6,6): error TS1005: ';' expected.
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(6,11): error TS1109: Expression expected.
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(6,13): error TS2693: 'I' only refers to a type, but is being used as a value here.
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(7,6): error TS2457: Type alias name cannot be 'object'.


==== tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts (9 errors) ====
    interface I {}
    type any = I;
         ~~~
!!! error TS2457: Type alias name cannot be 'any'.
    type number = I;
         ~~~~~~
!!! error TS2457: Type alias name cannot be 'number'.
    type boolean = I;
         ~~~~~~~
!!! error TS2457: Type alias name cannot be 'boolean'.
    type string = I;
         ~~~~~~
!!! error TS2457: Type alias name cannot be 'string'.
    type void = I;
    ~~~~
!!! error TS2304: Cannot find name 'type'.
         ~~~~
!!! error TS1005: ';' expected.
              ~
!!! error TS1109: Expression expected.
                ~
!!! error TS2693: 'I' only refers to a type, but is being used as a value here.
    type object = I;
         ~~~~~~
!!! error TS2457: Type alias name cannot be 'object'.