Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tipo retorno funcoes #606

Merged

Conversation

Aristidescosta
Copy link
Contributor

Está pull request vem dar resposta a issus #604

O problema consistia no facto não ter se verificado se o que vem após do tipo de era uma chama
Aqui está a resolução:

if (
    tipoDe instanceof Binario ||
    tipoDe instanceof TipoDe ||
    tipoDe instanceof Unario ||
    tipoDe instanceof Variavel ||
    tipoDe instanceof Agrupamento ||
    tipoDe instanceof Chamada
) {
    tipoDe = await this.avaliar(tipoDe);
    return tipoDe.tipo || inferirTipoVariavel(tipoDe);
}

@samuelrvg samuelrvg self-requested a review January 29, 2024 14:10
@samuelrvg samuelrvg merged commit a6a9661 into DesignLiquido:principal Jan 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants