Skip to content

dual_type and codual_type conditions #674

@willtebbutt

Description

@willtebbutt

A condition that we require on this function is that P <: Q implies dual_type(P) <: dual_type(Q). In particular, this means that we cannot have dual_type(P) == Dual(P, tangent_type(P)) if P is abstract.

This is something that ought to be tested a lot better than it currently is (we have exactly the same requirement for codual_type, but don't properly test it).

Originally posted by @willtebbutt in #389 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions