TypeScript/tests/baselines/reference/interfacesWithPredefinedTypesAsNames.errors.txt

23 lines
1.3 KiB
Plaintext
Raw Normal View History

tests/cases/conformance/interfaces/interfaceDeclarations/interfacesWithPredefinedTypesAsNames.ts(1,11): error TS2427: Interface name cannot be 'any'
tests/cases/conformance/interfaces/interfaceDeclarations/interfacesWithPredefinedTypesAsNames.ts(2,11): error TS2427: Interface name cannot be 'number'
tests/cases/conformance/interfaces/interfaceDeclarations/interfacesWithPredefinedTypesAsNames.ts(3,11): error TS2427: Interface name cannot be 'string'
tests/cases/conformance/interfaces/interfaceDeclarations/interfacesWithPredefinedTypesAsNames.ts(4,11): error TS2427: Interface name cannot be 'boolean'
tests/cases/conformance/interfaces/interfaceDeclarations/interfacesWithPredefinedTypesAsNames.ts(5,11): error TS1003: Identifier expected.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/interfaces/interfaceDeclarations/interfacesWithPredefinedTypesAsNames.ts (5 errors) ====
interface any { }
~~~
!!! error TS2427: Interface name cannot be 'any'
2014-07-13 01:04:16 +02:00
interface number { }
~~~~~~
!!! error TS2427: Interface name cannot be 'number'
2014-07-13 01:04:16 +02:00
interface string { }
~~~~~~
!!! error TS2427: Interface name cannot be 'string'
2014-07-13 01:04:16 +02:00
interface boolean { }
~~~~~~~
!!! error TS2427: Interface name cannot be 'boolean'
2014-07-13 01:04:16 +02:00
interface void {}
~~~~
!!! error TS1003: Identifier expected.