Issue 11545 - Aggregate function literal member should not have access to enclosing scope

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