fix Issue 10254 - Purity correctness is broken with constructor
Merge pull request #2135 from 9rnsr/fix10254

Issue 10254 - Purity correctness is broken with constructor