Add scope preparing for in to become const scope
#7262
Merged
scope preparing for in to become const scope
#7262