Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vdka opened this issue Mar 29, 2018 · 0 comments
Open
Labels

Comments

@vdka
Copy link
Contributor

vdka commented Mar 29, 2018

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

@vdka vdka added the bug label Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant