2014-09-12 22:35:07 +02:00
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(3,17): error TS2304: Cannot find name 'number'.
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(4,18): error TS2304: Cannot find name 'string'.
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(5,18): error TS2304: Cannot find name 'boolean'.
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(6,18): error TS2304: Cannot find name 'Void'.
2014-12-17 00:56:56 +01:00
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(7,19): error TS1133: Type reference expected.
2014-09-12 22:35:07 +02:00
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(8,18): error TS2304: Cannot find name 'Null'.
2014-12-17 00:56:56 +01:00
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(9,19): error TS1133: Type reference expected.
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(9,24): error TS1005: ';' expected.
2014-09-12 22:35:07 +02:00
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(10,18): error TS2304: Cannot find name 'undefined'.
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(11,18): error TS2304: Cannot find name 'Undefined'.
tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts(14,18): error TS2311: A class may only extend another class.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive.ts (11 errors) ====
// classes cannot extend primitives
class C extends number { }
~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2304: Cannot find name 'number'.
2014-07-13 01:04:16 +02:00
class C2 extends string { }
~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2304: Cannot find name 'string'.
2014-07-13 01:04:16 +02:00
class C3 extends boolean { }
~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2304: Cannot find name 'boolean'.
2014-07-13 01:04:16 +02:00
class C4 extends Void { }
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2304: Cannot find name 'Void'.
2014-07-13 01:04:16 +02:00
class C4a extends void {}
~~~~
2014-12-01 00:38:45 +01:00
!!! error TS1133: Type reference expected.
2014-07-13 01:04:16 +02:00
class C5 extends Null { }
~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2304: Cannot find name 'Null'.
2014-07-13 01:04:16 +02:00
class C5a extends null { }
~~~~
2014-12-01 00:38:45 +01:00
!!! error TS1133: Type reference expected.
2014-07-13 01:04:16 +02:00
~
2014-09-12 00:19:57 +02:00
!!! error TS1005: ';' expected.
2014-07-13 01:04:16 +02:00
class C6 extends undefined { }
~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2304: Cannot find name 'undefined'.
2014-07-13 01:04:16 +02:00
class C7 extends Undefined { }
~~~~~~~~~
2014-09-12 00:19:57 +02:00
!!! error TS2304: Cannot find name 'Undefined'.
2014-07-13 01:04:16 +02:00
enum E { A }
class C8 extends E { }
~
2014-09-12 00:19:57 +02:00
!!! error TS2311: A class may only extend another class.