GH-725: fix logic for finding a lambda's usage of outer IDs

This commit is contained in:
Jon Siwek 2020-03-26 17:05:59 -07:00
parent f032885085
commit 1ca11f11c7
6 changed files with 43 additions and 22 deletions

View file

@ -4366,6 +4366,11 @@ LambdaExpr::LambdaExpr(std::unique_ptr<function_ingredients> arg_ing,
id->SetConst();
}
Scope* LambdaExpr::GetScope() const
{
return ingredients->scope.get();
}
IntrusivePtr<Val> LambdaExpr::Eval(Frame* f) const
{
auto lamb = make_intrusive<BroFunc>(