This happened to a friend of mine in a 150 or 152. The torque tube that connects the flaps broke and he had one up and one down and no movement. Sorry don't remember if it was 40deg or not.
He was able to land normally but I recall him saying it needed pretty much full aileron.
Apparently the bang that it made when it let go was the most frightening part!