TypeScript/tests/baselines/reference/classExtendsShadowedConstructorFunction.errors.txt

14 lines
689 B
Plaintext
Raw Normal View History

tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsShadowedConstructorFunction.ts(5,21): error TS2419: Type name 'C' in extends clause does not reference constructor function for 'C'.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsShadowedConstructorFunction.ts (1 errors) ====
class C { foo: string; }
module M {
var C = 1;
class D extends C { // error, C must evaluate to constructor function
~
!!! error TS2419: Type name 'C' in extends clause does not reference constructor function for 'C'.
2014-07-13 01:04:16 +02:00
bar: string;
}
}