fix Issue 11291 - Disallow mutation of a const variable
Merge pull request #2678 from 9rnsr/fix11291

Issue 11291 - Disallow mutation of a const variable