When is a constant not a constant? Does this really work? That's crazy talk!!
But yeah, because the compiler is allowed to interpret the two cases of the string literal as the same object, I guess it does work. (I'd try it but I don't have a VM handy.)