Skip to content

Commit

Permalink
Update compiler/passes/src/type_checking/checker.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandro Coglio <[email protected]>
Signed-off-by: Collin Chin <[email protected]>
  • Loading branch information
collinc97 and acoglio authored Jun 29, 2023
1 parent e995bc0 commit afe4162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/passes/src/type_checking/checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ impl<'a> TypeChecker<'a> {
if let Some(mapping_type) = self.assert_mapping_type(&arguments[0].0, arguments[0].1) {
// Check that the second argument matches the key type of the mapping.
self.assert_type(&arguments[1].0, &mapping_type.key, arguments[1].1);
// Return the mapping type.
// Return nothing.
Some(Type::Unit)
} else {
None
Expand Down

0 comments on commit afe4162

Please sign in to comment.