I made same test with TypeScript and unfortunately this kind of code pass without warning. (:
After that I made same test with another language (Delphi) that Anders Hejlsberg (designer of TypeScript) designed 24 years ago and this old compiler report error. :)
I forgot to mention in my previous comment that your article is great.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I made same test with TypeScript and unfortunately this kind of code pass without warning. (:
After that I made same test with another language (Delphi) that Anders Hejlsberg (designer of TypeScript) designed 24 years ago and this old compiler report error. :)
I forgot to mention in my previous comment that your article is great.