Well, this is a feature of the language. There must be an expression in which we mentioned the label.
If there are no statements after the label, just put ";" complete the statement or you can write the return statement only after the label.
user1465587
source share