fix Issue 10506 - Purity should not be checked in a mixin statement
Merge pull request #2289 from 9rnsr/fix10506

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