liquidhaskell icon indicating copy to clipboard operation
liquidhaskell copied to clipboard

Type aliases are not checked for scope errors at definition site

Open plredmond opened this issue 3 years ago • 0 comments

Slack thread: https://liquidhaskell.slack.com/archives/C54QAL9RR/p1616392946007000

{-@ type Foo N = {n:Int | n == N} @-}

{-@ type Bar = Foo {n} @-}

In the definition of Bar the expression variable n isn't in scope, but there's no error.

plredmond avatar Mar 22 '21 16:03 plredmond