[Bro-Dev] #1026: runtime error with local set of record with optional fields
Bro Tracker
bro at tracker.bro.org
Fri Jun 21 14:53:40 PDT 2013
#1026: runtime error with local set of record with optional fields
-----------------------+------------------------
Reporter: dmandelb | Owner:
Type: Problem | Status: new
Priority: Medium | Milestone: Bro2.2
Component: Bro | Version: git/master
Resolution: | Keywords:
-----------------------+------------------------
Comment (by jsiwek):
That's odd, seems like the assignment of `{}` messed up the type of
`foos`.
For now you can declare it like:
{{{
local foos: set[Foo] = set();
}}}
Or maybe better, since it's already implicitly an empty set, just omit the
assignment of a different empty set.
{{{
local foos: set[Foo];
}}}
--
Ticket URL: <http://tracker.bro.org/bro/ticket/1026#comment:1>
Bro Tracker <http://tracker.bro.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list