typeof does not preserve exactness of an object #7853
Labels
bug
Typing: object model
Typing: soundness
No false negatives (type checker claims that there is no error in the incorrect program)
Flow version: 0.102.0
Expected behavior
It should error out on an extra property return from a function. Note that this works as expected in version 0.80 but not after.
Actual behavior
There is no error
https://flow.org/try/#0PTAEAEDMBsHsHcBQiDGsB2BnALqAluntngIbQDK2J2ApqALygDeocJAJgQOYBcokZTDQA0rWBxrs+A6ENABfANzJsATwAOdStTqM1m2JHyFiZbbWWoMOfnwAUOHX3M0AlAwB8oFw1CPansyIoKAATjTYAK6h6EEhIWyc6Lyg2KGRIsHxiZJ8aRnCWSGEKDR8AETlWUqINUA
The text was updated successfully, but these errors were encountered: