GH-1211: Improve error message for already-defined functions

This commit is contained in:
Jon Siwek 2020-10-12 16:19:19 -07:00
parent b73cc816e9
commit 8c85f2135e
3 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,11 @@
# @TEST-EXEC-FAIL: zeek -b %INPUT >out 2>&1
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
function foo(a: string)
{ print a; }
function foo(a: string)
{ }
event zeek_init()
{ foo("hello"); }