Correctly report errors for ambiguous default methods

Fix #8808.