Issue a compiler error if incorrect base type used