When encountering the error where a function declares an opaque return type 'some View', yet the return statements within its body lack matching underlying types, what are the implications of this inconsistency in Swift programming?