Skip to content

Commit

Permalink
Update src/ast/desugar.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Saul Shanabrook <s.shanabrook@gmail.com>
  • Loading branch information
yihozhang and saulshanabrook authored Oct 10, 2024
1 parent 10137cd commit 02a7964
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ast/desugar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pub(crate) fn desugar_command(
variants,
} => desugar_datatype(span, name, variants),
Command::Datatypes { span: _, datatypes } => {
// first declare all the datatypes as sorts, then add all explicit sorts which could refer to the datatypes, and finally add all the variants as functions
let mut res = vec![];
for datatype in datatypes.iter() {
let span = datatype.0.clone();
Expand Down

0 comments on commit 02a7964

Please sign in to comment.