Confuse behavior when comparing enum
- Lenguaje dominante
- Rust
- Estrellas
- 22.3k
- Forks
- 1.9k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
https://flow.org/try/#0PTAEAEDMBsHsHcBQ0CmAXUBDAXKA5JngD54BGxeAxnqALz6GKICWkoAFJnfXgCZ4BKUAG9QIUADtYoFACdZsWYgC+TVp26gAjENHi5CpapZsNtc-n66xYA4pVrTXc-R0ibk6XaNA

I think this is a quite strange behavior comparing to [typescript version](http://www.typescriptlang.org/play/index.html#src=let%20a%3A%20'a'%7C'b'%7C'c'%20%3D%20'a'%0D%0A%0D%0Aif%20(a%20%3D%3D%20'd')%20%7B%20%2F%2F%20no%20error%0D%0A%7D%0D%0A%0D%0Aif(a%20%3D%3D%201)%20%7B%20%2F%2F%20error%0D%0A%7D%0D%0A%0D%0Aif%20(a%20%3D%3D%3D%20'd')%20%7B%20%2F%2F%20error%0D%0A%7D%0D%0A%0D%0Aif%20(a%20%3D%3D%3D%201)%20%7B%20%2F%2F%20no%20error%0D%0A%7D),

and personaly I'm more agree with the typescript version, because people will make less mistack.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.