Error (typechecking) Type mismatch. Expected: `a Given: int