TypeScript/tests/baselines/reference/clodulesDerivedClasses.errors.txt
Daniel Rosenwasser 6e77e2e810 Removed colons from diagnostic messages.
Also got rid of the 'terminalMessages' concept.
2014-10-28 00:48:58 -07:00

34 lines
No EOL
1.1 KiB
Text

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.
Type 'typeof Utils' is not assignable to type 'typeof Utils'.
Property 'convert' is missing in type 'typeof 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: Type 'typeof Utils' is not assignable to type 'typeof Utils'.
!!! error TS2417: Property 'convert' is missing in type 'typeof Utils'.
name: string;
}
module Path.Utils {
export function convert2(): Path {
return null;
}
}