Skip to content

Intersection type containing a constructor function type should count as one #10261

Closed
@ghost

Description

TypeScript Version: nightly

Code

class A {}
const a: (typeof A) & {} = A;
class B extends a {}

Expected behavior:

No error.

Actual behavior:

src/a.ts(3,17): error TS2507: Type 'typeof A & {}' is not a constructor function type

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions