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

Bugs with polymorphism contraints in let-bindings #5

Open
mlasson opened this issue Dec 8, 2016 · 0 comments
Open

Bugs with polymorphism contraints in let-bindings #5

mlasson opened this issue Dec 8, 2016 · 0 comments

Comments

@mlasson
Copy link
Member

mlasson commented Dec 8, 2016

We have problem with polymorphism constraints:

let[@landmark] f : type t. t -> t = fun x -> x`

will trigger a clean but disapointing error message:

ppx_landmark: this landmark annotation requires a name argument

whereas exlicititly providing the name

let[@landmark "f"] f : type t. t -> t = fun x -> x

generates an unlocated type error after the ppx:

File "none", line 1:
Error: This definition has type 't -> 't which is less general than
't0. 't0 -> 't0

mlasson added a commit that referenced this issue Jan 9, 2017
mlasson added a commit that referenced this issue Jan 9, 2017
mlasson added a commit that referenced this issue Jan 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant