daphne-project/daphne

Reconsider type inference for `EwPowOp`

Offen

#776 geöffnet am 02.07.2024

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)C++ (84 Forks)auto 404
buggood first issue

Repository-Metriken

Stars
 (80 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide