daphne-project/daphne

Reconsider type inference for `EwPowOp`

オープン

#776 opened on 2024/07/02

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)C++ (84 件のフォーク)auto 404
buggood first issue

Repository metrics

Stars
 (80 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド