Closed gajus closed 7 years ago
It seems that Flow itself does allow this but it's probably a bug. Nevertheless, with flow-runtime I don't want to choke on anything that Flow accepts so at most we could emit a warning here. I think it's easier to ignore this edge case, maybe your eslint plugin catches it?
I think the following should throw an error, since you would never overwrite a property in the same type declaration:
Related: https://github.com/codemix/babel-plugin-typecheck/issues/115