Skip to content
This repository has been archived by the owner on May 20, 2018. It is now read-only.

Some type parameters cannot be inferred #180

Open
robrix opened this issue Dec 20, 2015 · 0 comments
Open

Some type parameters cannot be inferred #180

robrix opened this issue Dec 20, 2015 · 0 comments
Labels

Comments

@robrix
Copy link
Contributor

robrix commented Dec 20, 2015

Module+List.swift has a bunch of type parameters that can’t be inferred, because we’re only able to unify as part of the pairwise definitional equality of two terms. Therefore when we apply a function like (a : Type) → (b : Type) → (a → b) → b, we have to specify a and b explicitly since we can’t guess them from their relationships with the later parameters.

One possible solution would be constraint/assumption generation & the unification thereof.

@robrix robrix added the bug label Dec 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant