if let resultTy = node.returnType { if let lastBody = node.body.popLast() as? Expr { let expr = try solution.coerce(expr: lastBody, to: resultTy) node.body.append(expr) } }
as?