Issue 12506 - Wrongly private lambda to define global immutable array

https://d.puremagic.com/issues/show_bug.cgi?id=12506