λ Support functions! #5

Open
acw wants to merge 59 commits from awick/functions into develop
2 changed files with 3 additions and 1 deletions
Showing only changes of commit cfcb3f042b - Show all commits

View File

@@ -307,10 +307,12 @@ fn convert_expression(
merge_prereq(&mut prereqs, prereq);
}
let result_type = ir::TypeOrVar::Structure(type_fields);
constraint_db.push(Constraint::NamedTypeIs(
loc.clone(),
name.clone().intern(),
ir::TypeOrVar::Structure(type_fields),
result_type.clone(),
));
let result =
ir::Expression::Construct(loc, result_type.clone(), name.intern(), result_fields);