fix Issue 10506 - Purity should not be checked in a mixin statement