daphne-project/daphne

Reconsider type inference for `EwPowOp`

Aperta

#776 aperta il 2 lug 2024

 (1 commento) (0 reazioni) (0 assegnatari)C++ (84 fork)auto 404
buggood first issue

Metriche repository

Star
 (80 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor