clever-lang/clever — Issue #150: Need to check function return
Author: muriloadriano
Created: 2012-03-03 04:22:50+00:00
State: open
Labels: Bug, Compiler, Critical

We need to detect when a function do not return the expected type and generate a compiler error as in:

```
Int f() {

}
```

We also need to emit a compiler error when a function may not to return, as in:

```
Int f(Int x) {
if (x == 2) {
return 3;
}
else if (x == 3) {
return 5;
}
}
```