Skip to content

Polymorphism isn't specializing for some fairly simple polymorphic functions #131

@vdka

Description

@vdka
Foo :: fn(a: ($T) -> bool) -> void {
}

main :: fn() -> void {
    Foo(fn(a: i64) -> bool { return 1 == 2 })
}

Failed to specialize parameter a (type ($T) -> bool) with 'fn(a: i64) -> bool { return 1 == 2 }' (type (i64) -> bool)

See the long out of date branch polymorphic-functions for some insight into fixing this

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