diff --git a/compiler/constrain/src/uniq.rs b/compiler/constrain/src/uniq.rs index 4b5977a129..b3c4f192dc 100644 --- a/compiler/constrain/src/uniq.rs +++ b/compiler/constrain/src/uniq.rs @@ -369,7 +369,7 @@ pub fn constrain_expr( And(vec![ Eq( Type::Variable(*var), - Expected::ForReason(Reason::IntLiteral, num_type, region), + Expected::ForReason(Reason::NumLiteral, num_type, region), region, ), Eq(Type::Variable(*var), expected, region),