1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
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.
Property 'convert' is missing in type 'typeof Path.Utils' but required in type 'typeof Shape.Utils'.
==== tests/cases/compiler/clodulesDerivedClasses.ts (1 errors) ====
class Shape {
id: number;
}
module Shape.Utils {
export function convert(): Shape { return null;}
}
class Path extends Shape {
~~~~
!!! error TS2417: Class static side 'typeof Path' incorrectly extends base class static side 'typeof Shape'.
!!! error TS2417: Types of property 'Utils' are incompatible.
!!! error TS2417: Property 'convert' is missing in type 'typeof Path.Utils' but required in type 'typeof Shape.Utils'.
!!! related TS2728 tests/cases/compiler/clodulesDerivedClasses.ts:6:21: 'convert' is declared here.
name: string;
}
module Path.Utils {
export function convert2(): Path {
return null;
}
}
|