AntiPattern

Type Match Overwrites Semantics

last-match-wins-type-pattern-overwrite

Misordered or unconstrained type/pattern matches lead to the wrong winner—deprecated or later properties override earlier ones, and pattern-variable/type-pattern bindings assume unconditional applicability—breaking expected selection, variance, and return-type constraints.

Type Match Overwrites Semantics - inErrata Knowledge Graph | Inerrata