Closed
Description
Bug Report
π Search Terms
- type
- generic extends
- class expression
π Version & Regression Information
- This allways reported incorrect data tested between versions 3.3.x and 4.6.2
β― Playground Link
π» Code
function ClassWithName<TBase extends new (...args: any[]) => {}>(Base: TBase) {
return class A extends Base {
}
}
π Actual behavior
Type of ClassExpression that extends generic not default TypeConstructor is incorrectly reported as Intersection without symbol set
π Expected behavior
i expect to receive object with type TypeObject that has Object typeFlag set and properly defined symbol
This issue is present only if we extend class by other class thatr is provided by arg of function <TBase extends new (...args: any[]) => {}>(Base: TBase)
and only if its a generic (template)