liquidhaskell
liquidhaskell copied to clipboard
Type aliases are not checked for scope errors at definition site
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 variablen
isn't in scope, but there's no error.