Definitely make both of them distincts. The `.borrow` pragma will help you avoid some of those casts. I would remove range from the Square type altogether, but maybe keep it in addPiece's sq parameter.
- Two type matches, both wrong: how to do it right? koistinen
- Two type matches, both wrong: how to do it right? shirleyquirk
- Two type matches, both wrong: how to do it right? koistinen
- Two type matches, both wrong: how to do it right... koistinen
- Two type matches, both wrong: how to do it r... planetis
