Skip to content

Commit

Permalink
Finished adding support for '.' operator on polymorphic struct values
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacShelton committed Dec 12, 2024
1 parent 7d53a40 commit 04b4ac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lower/expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ pub fn lower_expr(
let mut catalog = PolyCatalog::new();
for (name, argument) in structure.parameters.names().zip(arguments.iter()) {
catalog
.put_type(name, argument)
.put_type(name, &builder.unpoly(argument)?.0)
.expect("unique type parameter names");
}
let poly_recipe = catalog.bake();
Expand Down Expand Up @@ -650,7 +650,7 @@ pub fn lower_destination(
let mut catalog = PolyCatalog::new();
for (name, argument) in structure.parameters.names().zip(arguments.iter()) {
catalog
.put_type(name, argument)
.put_type(name, &builder.unpoly(argument)?.0)
.expect("unique type parameter names");
}
let poly_recipe = catalog.bake();
Expand Down

0 comments on commit 04b4ac7

Please sign in to comment.