Require const generic literals to be wrapped in Literal #367

Merged
sb10q merged 7 commits from enhance/typing-literal into master 2023-12-16 18:40:48 +08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit bf830f216e - Show all commits

View File

@ -388,7 +388,7 @@ impl Unifier {
loc: Option<Location>, loc: Option<Location>,
) -> Type { ) -> Type {
let ty_enum = TypeEnum::TLiteral { let ty_enum = TypeEnum::TLiteral {
values: values.clone(), values: values.into_iter().dedup().collect(),
loc loc
}; };
self.add_ty(ty_enum) self.add_ty(ty_enum)