zgao

Results comments of zgao

This issue renders flow extremely clunky and essentially unusable for our type system, and we're thinking about switching to TypeScript for this reason alone...

I should comment that we have also started maintaining a separate build of flow with #583, and it works for everything we care about.

@bhosmer Shouldn't this be closed now? #582 was fixed in 0.20, and the test case presented here does not error for me.

@samwgoldman Do you know what's going on here?

Hypothesis: perhaps you would have to put success: true in A? Otherwise some result like { A: 'test', success: false } would fall into type success, since it says nothing...

Yup, I ran into this problem too, and it is affecting large portions of our codebase. Just a +1 for impact of this bug.

Just chipping in and confirming that this is a major issue for us as well. We recently refactored our code and replaced a bunch of union fields with classes, and...

@samwgoldman has there been any progress at all in fixing this? Thanks!