mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 15:03:46 +00:00
Print rigid optional types correctly
This commit is contained in:
parent
fe215cd9b6
commit
b69051c90e
1 changed files with 4 additions and 4 deletions
|
@ -921,10 +921,10 @@ fn subs_fmt_flat_type(this: &FlatType, subs: &Subs, f: &mut fmt::Formatter) -> f
|
|||
let (it, new_ext) = fields.sorted_iterator_and_ext(subs, *ext);
|
||||
for (name, content) in it {
|
||||
let separator = match content {
|
||||
RecordField::Optional(_) => '?',
|
||||
RecordField::RigidOptional(_) => '?',
|
||||
RecordField::Required(_) => ':',
|
||||
RecordField::Demanded(_) => ':',
|
||||
RecordField::Optional(_) => "?",
|
||||
RecordField::RigidOptional(_) => "r?",
|
||||
RecordField::Required(_) => ":",
|
||||
RecordField::Demanded(_) => ":",
|
||||
};
|
||||
write!(
|
||||
f,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue