Skip to content

Permissive of unused generics #41

@cstuartroe

Description

@cstuartroe

This compiles even though it probably shouldn't:

fn bar[S, T](t: T): S -> t.foo

This is because T.foo and S are both basically inferred to be empty object types, so T.foo <: S

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorIt's not broken, but it's not good either

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions