Initialization information seems to be lost inside closures
Aperta
bug
Typing: refinements
- Lingua principale
- Rust
- Stelle
- 22.3k
- Fork
- 1.9k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
```
/* @flow */
function foo(): () => number {
var result;
return function (): number {
if (Math.random() < 0.5) result = 0;
return result; // no error, but result could be undefined
}
}
```
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.