fix: clean up uniq and adjust PatternCategory for int type in constrain

This commit is contained in:
rvcas 2020-12-21 17:57:23 -05:00
parent 3ea4858eb5
commit e91fc2f1ff
2 changed files with 17 additions and 34 deletions

View file

@ -157,7 +157,7 @@ pub fn constrain_pattern(
IntLiteral(_) => {
state.constraints.push(Constraint::Pattern(
region,
PatternCategory::Float,
PatternCategory::Int,
builtins::num_int(),
expected,
));