hazel icon indicating copy to clipboard operation
hazel copied to clipboard

Constructors that require arguments shouldn't be in patterns without arguments

Open Negabinary opened this issue 1 month ago • 4 comments

image

This example should ideally have a static error on the X because it doesn't have an argument.

type T = +X(Int) in
let X = fun x -> X(x) in
?

@disconcision I wonder if you have any ideas how to do this?

Negabinary avatar May 16 '24 20:05 Negabinary