Found the answer by myself doing tests... It will compile because method boolean B(String msg) is a method, not a constructor... I always thought that class names could just be used for constructors, not other methods, but maybe this thought was teached to me due to legibility.
Well, something new I've learned today!