Oh I see! Actually I’m using it in a pattern matching expression inside a function.
type a =
| A
type b =
| A(int)
let f = (item) => switch item {
| A => true
}
So the real problem here is that the compiler cannot infer the correct type of the parameter from the name of the constructor in the first pattern matching clause.
Thanks!