type: class expression that extends passed argument of generic TypeConstructor is reported incorrectly by typeChecker as intersection of types #49116
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
Bug Report
π Search Terms
π Version & Regression Information
β― Playground Link
Playground Link
Typescript Eslint
Ast Explorer
π» Code
π 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)ref: typescript-eslint/typescript-eslint#4974
The text was updated successfully, but these errors were encountered: