Skip to content

Commit

Permalink
Update generics for writing enum
Browse files Browse the repository at this point in the history
  • Loading branch information
darrell-roberts committed Jun 4, 2024
1 parent 8e3423f commit 9950499
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/language/swift.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,10 +452,15 @@ impl Language for Swift {

self.write_comments(w, 0, &shared.comments)?;
let indirect = if shared.is_recursive { "indirect " } else { "" };

let generic_constraint_string = self
.default_generic_constraints
.get_constraints()
.chain(decs.iter())
.collect::<BTreeSet<_>>()
.into_iter()
.join(" & ");

writeln!(
w,
"public {}enum {}{}: {} {{",
Expand Down

0 comments on commit 9950499

Please sign in to comment.