daphne-project/daphne

Reconsider type inference for `EwPowOp`

開放

#776 建立於 2024年7月2日

 (1 則留言) (0 個反應) (0 位負責人)C++ (84 個分叉)auto 404
buggood first issue

倉庫指標

星標
 (80 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南