In let and case expressions
test1 a
= let { x } = a
in x -- parse error from here
test2 a
= let { x: y } = a
in y -- parse error from here
test3 a
= case a of
{ x }
-> x -- parse error from here
test4 a
= case a of
{ x: y }
-> y -- parse error from here
In function argument it works fine
test { x }
= x -- this works