https://flowtype.org/try/#0PQKgBAAgZgNg9gdzCYAoVBGMBqMBvAXwG4g
The weird part is that first two errors are pointing to the same 1 which is mentioned as number and string at the same time and it is also mentioned that I try to add it to itself
3: 1 + {};
^ number. This type cannot be added to
3: 1 + {};
^ string
3: 1 + {};
^ object literal. This type cannot be added to
3: 1 + {};
^ string
IMO the output above should look like
3: 1 + {};
^ string (coerced from number). This type cannot be added to
3: 1 + {};
^ object literal. This type cannot be added to
3: 1 + {};
^ string
or even better
3: 1 + {};
^ number. This type cannot be added to
3: 1 + {};
^ object literal. This type cannot be added to
3: 1 + {};
^ number
that's bizarre... it should just be
3: 1 + {};
^ object literal. This type cannot be added to
3: 1 + {};
^ number
I'll look into it. thanks!
Most helpful comment
that's bizarre... it should just be
I'll look into it. thanks!