2014-11-02 07:54:55 +01:00
|
|
|
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(6,6): error TS1003: Identifier expected.
|
|
|
|
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(6,11): error TS1005: ';' expected.
|
2014-11-02 21:31:44 +01:00
|
|
|
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'
|
2014-11-02 07:54:55 +01:00
|
|
|
tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts(6,13): error TS2304: Cannot find name 'I'.
|
|
|
|
|
|
|
|
|
2014-11-02 21:31:44 +01:00
|
|
|
==== tests/cases/conformance/types/typeAliases/reservedNamesInAliases.ts (7 errors) ====
|
2014-11-02 07:54:55 +01:00
|
|
|
interface I {}
|
|
|
|
type any = I;
|
2014-11-02 21:31:44 +01:00
|
|
|
~~~
|
|
|
|
!!! error TS2457: Type alias name cannot be 'any'
|
2014-11-02 07:54:55 +01:00
|
|
|
type number = I;
|
2014-11-02 21:31:44 +01:00
|
|
|
~~~~~~
|
|
|
|
!!! error TS2457: Type alias name cannot be 'number'
|
2014-11-02 07:54:55 +01:00
|
|
|
type boolean = I;
|
2014-11-02 21:31:44 +01:00
|
|
|
~~~~~~~
|
|
|
|
!!! error TS2457: Type alias name cannot be 'boolean'
|
2014-11-02 07:54:55 +01:00
|
|
|
type string = I;
|
2014-11-02 21:31:44 +01:00
|
|
|
~~~~~~
|
|
|
|
!!! error TS2457: Type alias name cannot be 'string'
|
2014-11-02 07:54:55 +01:00
|
|
|
type void = I;
|
|
|
|
~~~~
|
|
|
|
!!! error TS1003: Identifier expected.
|
|
|
|
~
|
|
|
|
!!! error TS1005: ';' expected.
|
|
|
|
~
|
|
|
|
!!! error TS2304: Cannot find name 'I'.
|