daphne-project/daphne

Reconsider type inference for `EwPowOp`

Aberta

#776 aberto em 2 de jul. de 2024

 (1 comentário) (0 reação) (0 responsável)C++ (84 forks)auto 404
buggood first issue

Métricas do repositório

Stars
 (80 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

The DaphneDSL expression 10 ^ -3 yields the unexpected result 0, since the results is returned as an integer just like the argument. It would be more intuitive to return 0.001, just like the DaphneDSL expression 10.0 ^ -3 does. To this end, we need to adapt the type inference for EwPowOp.

Guia do colaborador