In cars with parking sensors, it would likely have beeped at you aggressively unless you disabled that.
It doesn't auto-brake but does do a good job of avoiding such impacts by alerting to objects nearby you might not see, including cross-traffic detection when backing out of parking spaces.