fix Issue 11545 - Aggregate function literal member should not have access to enclosing scope
Merge pull request #2824 from 9rnsr/fix11545

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