Check for valid identifier in WhenStmt::Describe

This commit is contained in:
Tim Wojtulewicz 2024-04-10 16:10:26 -07:00
parent da7457340c
commit 9abf8ea8b7
3 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,2 @@
error in /Users/tim/Desktop/projects/zeek-master/testing/btest/.tmp/language.when-local-function-capture-error/when-local-function-capture-error.zeek, line 9: no such local identifier: z
error in /Users/tim/Desktop/projects/zeek-master/testing/btest/.tmp/language.when-local-function-capture-error/when-local-function-capture-error.zeek, lines 12-16: y is used inside "when" statement but not captured (when [x, <error>](T == T) { print hmm?, x, y} timeout 100.0 msecs { print timeout})