Temporarily disable multiple literal bounds #369

Merged
sb10q merged 1 commits from fix/literal-multiple-bounds-workaround into master 2024-08-17 17:37:20 +08:00
1 changed files with 8 additions and 1 deletions
Showing only changes of commit 9d64e606f4 - Show all commits

View File

@ -341,7 +341,14 @@ pub fn parse_ast_to_type_annotation_kinds<T>(
_ => unreachable!(),
})
.collect_vec();
if type_annotations.len() == 1 {
Ok(TypeAnnotation::Literal(type_annotations))
} else {
Err(HashSet::from([
format!("multiple literal bounds are currently unsupported (at {})", value.location)
]))
}
}
// custom class