mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Add NEWS entries for lambda/capture-list functionality
This commit is contained in:
parent
0a7e5e67a2
commit
c166288248
2 changed files with 14 additions and 0 deletions
|
@ -4429,6 +4429,7 @@ void LambdaExpr::CheckCaptures()
|
|||
{
|
||||
if ( outer_ids.size() > 0 )
|
||||
{
|
||||
// TODO: Remove in v5.1: these deprecated closure semantics
|
||||
reporter->Warning("use of outer identifiers in lambdas without [] captures is deprecated: %s%s",
|
||||
outer_ids.size() > 1 ? "e.g., " : "",
|
||||
outer_ids[0]->Name());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue