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

Typechecking failure on a small example #1818

Closed
aseemr opened this issue Jul 12, 2019 · 1 comment
Closed

Typechecking failure on a small example #1818

aseemr opened this issue Jul 12, 2019 · 1 comment

Comments

@aseemr
Copy link
Collaborator

aseemr commented Jul 12, 2019

module Test

let test_t () = x:int -> Pure unit (requires x > 0) (ensures fun _ -> True)

assume val bar (x:int) : Pure unit (requires x > 0) (ensures fun _ -> True)

let foo () : (test_t ()) =
  fun x -> bar x

Stumbled on something like this in LowParse when working on #1055.

@aseemr
Copy link
Collaborator Author

aseemr commented Jul 16, 2019

This works in F* master now.

@aseemr aseemr closed this as completed Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant