Skip to content

Commit

Permalink
Fix a Rust typegen bug (#964)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfellis authored Nov 19, 2024
1 parent 417ba04 commit ac815a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alan/src/lntors/typen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pub fn ctype_to_rtype(
_ => CType::fail("Bound types must be strings or rust imports"),
}
}
_ => Ok(("".to_string(), deps)), // TODO: Is this correct?
otherwise => ctype_to_rtype(otherwise, in_function_type, deps),
}
CType::Generic(name, args, _) => Ok((format!("{}<{}>", name, args.join(", ")), deps)),
CType::Binds(n, args) => {
Expand Down

0 comments on commit ac815a4

Please sign in to comment.