rodrigogribeiro / solcore

1 stars 2 forks source link

Return types are not checked properly #7

Closed mbenke closed 1 month ago

mbenke commented 1 month ago

Consider the following (admittedly silly) function:

  function even (n) -> Bool {
    match n {
    | Zero => return 1; return True;
    | Succ[m] => return 0; return False;
    };
  }

it typechecks ok, though it probably should not.

rodrigogribeiro commented 1 month ago

Fixed on last commit on main.