mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Type: use class IntrusivePtr in FuncType
This commit is contained in:
parent
73cea5dcad
commit
184fb9a980
4 changed files with 25 additions and 34 deletions
|
@ -1431,7 +1431,7 @@ ReturnStmt::ReturnStmt(IntrusivePtr<Expr> arg_e)
|
|||
{
|
||||
if ( e )
|
||||
{
|
||||
ft->SetYieldType(e->Type());
|
||||
ft->SetYieldType({NewRef{}, e->Type()});
|
||||
s->ScopeID()->SetInferReturnType(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue