swc/crates/swc_ecma_parser/tests/tsc/classExtendsShadowedConstructorFunction.ts

8 lines
154 B
TypeScript

class C { foo: string; }
module M {
var C = 1;
class D extends C { // error, C must evaluate to constructor function
bar: string;
}
}