We've found a bug for you! /.../fixtures/polyvariant_name_formatting.res:6:3-10 4 │ 5 │ switch f { 6 │ | #Invalid => () 7 │ } 8 │ This pattern matches values of type [? #Invalid] but a pattern was expected which matches values of type polyvariant The second polymorphic variant is closed and doesn't include the constructor: #Invalid. Possible solutions: - Either make the second variant open so it can accept additional constructors. To do this, make sure the type starts with [> instead of [ - Or add the missing constructor to it.