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