Bruk3/C-net

Function with non-void return type must have a return statement of that type

Closed this issue · 2 comments

Bruk3 commented
Function with non-void return type must have a return statement of that type
Bruk3 commented

The following should be invalid since there's no return statement.

int balance(){
    int balanceLeft = 3;
}
Bruk3 commented

Or maybe we should just leave it as a warning?