Goofy `instanceof` refinement under a bounded polymorphic function
オープン
bug
Typing: refinements
- 主要言語
- Rust
- スター
- 22.3k
- フォーク
- 1.9k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I've got a polymorphic function taking two unrelated classes, and I'm trying to refine an union based on its inputs, e.g.
```js
class X {}
class Y {}
I was expecting `(value: B)` to pass, but it doesn't. Further, the consequent branch passes `A&B` (and any other permutations of `A` and `B` under union and intersection).
コントリビューションガイド
評価
この issue はまだ評価されていません。