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

panic with abstract refinement in local signature #1855

Open
ranjitjhala opened this issue Jul 14, 2021 · 1 comment
Open

panic with abstract refinement in local signature #1855

ranjitjhala opened this issue Jul 14, 2021 · 1 comment

Comments

@ranjitjhala
Copy link
Member

See http://goto.ucsd.edu:8090/index.html#?demo=permalink%2F1626278397_36999.hs

{-@ type UList a = [a]<{\x y -> x /= y}> @-}

reverse :: [a] -> [a]
reverse         = go seed
  where
    {-@ seed :: UList a @-}
    seed = []
    go acc []     = acc
    go acc (x:xs) = go (x:acc) xs

Due to @jllang ucsd-progsys/liquidhaskell-tutorial#111

@facundominguez
Copy link
Collaborator

I cannot reproduce this in latest LH. It does require to move seed to the top level in order to give it a spec.

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

2 participants