Detect functions that try to bind variables from an outer scope.

And raise an error saying that's not supported.
Addresses BIT-1233.
This commit is contained in:
Jon Siwek 2014-08-22 16:49:10 -05:00
parent f8895843cf
commit 3521a92a00
4 changed files with 76 additions and 2 deletions

View file

@ -0,0 +1,3 @@
error in /Users/jsiwek/Projects/bro/bro/testing/btest/.tmp/language.outer_param_binding/outer_param_binding.bro, line 16: referencing outer function parameters not supported (c)
error in /Users/jsiwek/Projects/bro/bro/testing/btest/.tmp/language.outer_param_binding/outer_param_binding.bro, line 16: referencing outer function parameters not supported (d)
error in /Users/jsiwek/Projects/bro/bro/testing/btest/.tmp/language.outer_param_binding/outer_param_binding.bro, line 17: referencing outer function parameters not supported (b)