failing?

Does it make sense that this code is failing?

=====START=====
type Bundle: table[string] of string;

const foobar: table[count] of Bundle = {} &redef;

redef foobar += {
        [1] = { ["A"] = "B" },
};
=====END=====

I'm getting this error:
./test2.bro, line 6: error: syntax error, at or near "{"

I'm seeing this on a branch, but I just merged in master so it should be happening on master too.

  .Seth

Does it make sense that this code is failing?

Well, define "sense" :-). Yes, it makes sense to me, because I could
easily see Bro's inference of types in initializations getting in the way
with what you've provided. It has trouble with nested definitions. Probably
the right way to fix this is to add support for constructors.

Can you get it to work using table()? For example, the following

  print table([3] = table(["foo"] = "bar"));

does indeed work.

    Vern