mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
cleanup
This commit is contained in:
parent
8db74298a2
commit
815b942f29
3 changed files with 4 additions and 26 deletions
|
@ -1533,30 +1533,6 @@ pub fn rec_defs_help(
|
|||
|
||||
vars.push(*fn_var);
|
||||
|
||||
// let expr_con = constrain_expr(
|
||||
// &Env {
|
||||
// rigids: ftv,
|
||||
// home: env.home,
|
||||
// },
|
||||
// def.loc_expr.region,
|
||||
// &def.loc_expr.value,
|
||||
// annotation_expected.clone(),
|
||||
// );
|
||||
//
|
||||
// // ensure expected type unifies with annotated type
|
||||
// let storage_con = Eq(
|
||||
// expr_type,
|
||||
// annotation_expected.clone(),
|
||||
// Category::Storage(std::file!(), std::line!()),
|
||||
// def.loc_expr.region,
|
||||
// );
|
||||
//
|
||||
// def_pattern_state.vars.push(expr_var);
|
||||
// // Open question: where should this constraint live?
|
||||
// // rigid_info.vars.push(expr_var);
|
||||
// rigid_info.constraints.push(storage_con);
|
||||
|
||||
// TODO investigate if this let can be safely removed
|
||||
let def_con = exists(
|
||||
vars,
|
||||
And(vec![
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue