Skip to content

Commit

Permalink
Merge pull request #606 from Aristidescosta/retorno-tipo-funcoes
Browse files Browse the repository at this point in the history
Tipo retorno funcoes
  • Loading branch information
samuelrvg authored Jan 29, 2024
2 parents b865051 + d18a1da commit a6a9661
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fontes/interpretador/interpretador-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ export class InterpretadorBase implements InterpretadorInterface {
tipoDe instanceof TipoDe ||
tipoDe instanceof Unario ||
tipoDe instanceof Variavel ||
tipoDe instanceof Agrupamento
tipoDe instanceof Agrupamento ||
tipoDe instanceof Chamada
) {
tipoDe = await this.avaliar(tipoDe);
return tipoDe.tipo || inferirTipoVariavel(tipoDe);
Expand Down

0 comments on commit a6a9661

Please sign in to comment.