You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pred p(int i) -> bool { true }
fn f(int i) : p(i) -> int { i }
fn g(int i) : p(i) -> int { f(i) }
Function g doesn't typecheck because the precondition on f isn't satisfied. I would expect this to work, otherwise I can't push the responsibility for satisfying preconditions up the call stack.