mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Stmt: Error on deprecated when/local usage
This has been around since Zeek v4.1, so it was warned about in Zeek 5.0 LTS and we could've removed it with 5.1. Also removed merge_top_scope() from the zeek::detail namespace, it's unused now. Updated the when-aggregates test somehow. I'm not quite sure what had been tested there :-/
This commit is contained in:
parent
5ef62b2de8
commit
bb80d80218
9 changed files with 18 additions and 36 deletions
|
@ -18,7 +18,7 @@ global h: opaque of Broker::Store;
|
|||
|
||||
function print_index(k: any)
|
||||
{
|
||||
when ( local r = Broker::get(h, k) )
|
||||
when [k] ( local r = Broker::get(h, k) )
|
||||
{
|
||||
print "master", k, r$status, r$result;
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ global inserted: event();
|
|||
|
||||
function print_index(k: any)
|
||||
{
|
||||
when ( local r = Broker::get(h, k) )
|
||||
when [k] ( local r = Broker::get(h, k) )
|
||||
{
|
||||
print "clone", k, r$status, r$result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue