Goofy `instanceof` refinement under a bounded polymorphic function
Ouverte
bug
Typing: refinements
- Langage dominant
- Rust
- Étoiles
- 22.3k
- Forks
- 1.9k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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).
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.