2014-10-28 08:28:59 +01:00
tests/cases/compiler/clodulesDerivedClasses.ts(9,7): error TS2417: Class static side 'typeof Path' incorrectly extends base class static side 'typeof Shape'.
Types of property 'Utils' are incompatible.
2015-01-02 20:04:00 +01:00
Type 'typeof Path.Utils' is not assignable to type 'typeof Shape.Utils'.
2014-09-12 22:35:07 +02:00
Property 'convert' is missing in type 'typeof Utils'.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/clodulesDerivedClasses.ts (1 errors) ====
class Shape {
id: number;
}
module Shape.Utils {
export function convert(): Shape { return null;}
}
class Path extends Shape {
~~~~
2014-10-28 08:28:59 +01:00
!!! error TS2417: Class static side 'typeof Path' incorrectly extends base class static side 'typeof Shape'.
!!! error TS2417: Types of property 'Utils' are incompatible.
2015-01-02 20:04:00 +01:00
!!! error TS2417: Type 'typeof Path.Utils' is not assignable to type 'typeof Shape.Utils'.
2014-10-28 08:28:59 +01:00
!!! error TS2417: Property 'convert' is missing in type 'typeof Utils'.
2014-07-13 01:04:16 +02:00
name: string;
}
module Path.Utils {
export function convert2(): Path {
return null;
}
}