Require const generic literals to be wrapped in Literal #367
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue