2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/conformance/classes/classDeclarations/classWithPredefinedTypesAsNames.ts(3,7): error TS2414: Class name cannot be 'any'
|
|
|
|
tests/cases/conformance/classes/classDeclarations/classWithPredefinedTypesAsNames.ts(4,7): error TS2414: Class name cannot be 'number'
|
|
|
|
tests/cases/conformance/classes/classDeclarations/classWithPredefinedTypesAsNames.ts(5,7): error TS2414: Class name cannot be 'boolean'
|
|
|
|
tests/cases/conformance/classes/classDeclarations/classWithPredefinedTypesAsNames.ts(6,7): error TS2414: Class name cannot be 'string'
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/conformance/classes/classDeclarations/classWithPredefinedTypesAsNames.ts (4 errors) ====
|
|
|
|
// classes cannot use predefined types as names
|
|
|
|
|
|
|
|
class any { }
|
|
|
|
~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2414: Class name cannot be 'any'
|
2014-07-13 01:04:16 +02:00
|
|
|
class number { }
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2414: Class name cannot be 'number'
|
2014-07-13 01:04:16 +02:00
|
|
|
class boolean { }
|
|
|
|
~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2414: Class name cannot be 'boolean'
|
2014-07-13 01:04:16 +02:00
|
|
|
class string { }
|
|
|
|
~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2414: Class name cannot be 'string'
|