This was discussed here: RFC: Symbol definition/declaration x visibility checks - #11 by jurahul
I also suggested this in the review and @jurahul mentioned that we can add this later after another issue is fixed in the parser (it has been fixed since then): https://reviews.llvm.org/D91456#inline-851955