TypeScript Version: nightly (2.2.0-dev.20161117)
Code
// @Filename: /node_modules/foo/index.jsThisfile is notread.// @Filename: /declarations.d.tsdeclare module "bar";// @Filename: /a.tsimportFoofrom"foo";importBarfrom"bar";classAextendsFoo{}classBextendsBar{}declarevarx: any;classCextendsx{}consty=Foo;classDextendsy{}Expected behavior:
No errors? All errors?
Actual behavior:
Classes B and C fail with error TS2507: Type 'any' is not a constructor function type.
TypeScript Version: nightly (2.2.0-dev.20161117)
Code
Expected behavior:
No errors? All errors?
Actual behavior:
Classes
BandCfail witherror TS2507: Type 'any' is not a constructor function type.