There will be no inverse function for y=0 since you'll have x=0 which is a vertical line (doesn't satisfy function requirement since it has infinitely many y for x=0). Inverse of y=x is x=y, so y=x for x<0. Your domains don't really work. You have an overlap.