Skip to content

Name resolution chokes on dependent pairs + type aliases #2590

@AlecsFerra

Description

@AlecsFerra
import Language.Haskell.Liquid.ProofCombinators
-- {-@ type Ix ty R = { val:ty | prop val = R @-}

{-@ foo :: (v::Int, { r:Int | r = v }) @-}
foo :: (Int, Int)
foo = (3, 3)


{-@ bar :: (v::Int, Ix Int v) @-}
bar :: (Int, Int)
bar = (3, 3)

Gives the following error:

    Unknown logic name `v`
    Cannot resolve name
    Maybe you meant one of: snd len fst Max Min
   |
13 | {-@ bar :: (v::Int, Ix Int v) @-}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions