This is something I also came across in java.
When you do that in java it follows the dmd behaviour.

Simply my 2 cents :p