28 lines
727 B
Text
28 lines
727 B
Text
|
==== tests/cases/compiler/clodulesDerivedClasses.ts (1 errors) ====
|
||
|
class Shape {
|
||
|
id: number;
|
||
|
}
|
||
|
|
||
|
module Shape.Utils {
|
||
|
export function convert(): Shape { return null;}
|
||
|
}
|
||
|
|
||
|
class Path extends Shape {
|
||
|
~~~~
|
||
|
!!! 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'.
|
||
|
name: string;
|
||
|
|
||
|
}
|
||
|
|
||
|
module Path.Utils {
|
||
|
export function convert2(): Path {
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|