fix: `grind` pattern validation

This PR fixes a bug in the `grind` pattern validation. The bug
affected type classes that were propositions.

Closes #11477
2 files changed