Skip to content

support type[...] where ... is a generic alias #1101

@carljm

Description

@carljm

https://play.ty.dev/1ac81fdc-057b-487a-9910-1d690b4ca673

class C[T]:
    pass

class D[T]:
    pass

var: type[C[int]] = D[int]

This assignment should be an error, but currently isn't.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtype propertiessubtyping, assignability, equivalence, and more

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions