> I hope the feature mentioned in the article will cause a compiler error.
Read the article. It won't.
At best you can perhaps find a linter that'll report it?
> However, I wouldn't use this approach when writing my own code.
You might use it by accident.
I know, so this is a wish. Looking at other comment sections, there are actually linters that can warn about such behavior.