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

Another case where type-based-casts and coercions are not equivalent #84

Open
LuKuangChen opened this issue Oct 9, 2019 · 0 comments
Open

Comments

@LuKuangChen
Copy link

$ grift --type-based-casts p2.grift
$ ./a.out 
Implicit cast in ascription on expression at p2.grift:3:3
$ grift --coercions p2.grift
$ ./a.out 
Implicit cast in ascription on expression at p2.grift:1:1

The content of p2.grift

((ann
  (ann
   (ann
    (ann
     (ann
      (lambda ([x : (Tuple Int Int)]) x)
      ((Tuple Int Int) -> (Tuple Int Int)))
     ((Tuple Int Int) -> (Tuple Dyn Int)))
    ((Tuple Int Int) -> (Tuple Bool Int)))
   ((Tuple Int Int) -> Dyn))
  ((Tuple Int Int) -> Bool))
 (tuple 1 2))
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