Type: use class IntrusivePtr in FuncType

This commit is contained in:
Max Kellermann 2020-03-03 17:05:32 +01:00
parent 73cea5dcad
commit 184fb9a980
4 changed files with 25 additions and 34 deletions

View file

@ -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);
}
}