mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
fix some mistakes
This commit is contained in:
parent
5d3f969a84
commit
73e0ea2e5d
5 changed files with 11 additions and 22 deletions
|
@ -148,7 +148,7 @@ pub fn constrain_pattern(
|
|||
state.constraints.push(Constraint::Pattern(
|
||||
region,
|
||||
PatternCategory::Num,
|
||||
builtins::builtin_type(Symbol::NUM_NUM, vec![Type::Variable(*var)]),
|
||||
builtins::num_num(Type::Variable(*var)),
|
||||
expected,
|
||||
));
|
||||
}
|
||||
|
@ -157,7 +157,7 @@ pub fn constrain_pattern(
|
|||
state.constraints.push(Constraint::Pattern(
|
||||
region,
|
||||
PatternCategory::Float,
|
||||
builtins::builtin_type(Symbol::NUM_INT, vec![]),
|
||||
builtins::num_int(),
|
||||
expected,
|
||||
));
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ pub fn constrain_pattern(
|
|||
state.constraints.push(Constraint::Pattern(
|
||||
region,
|
||||
PatternCategory::Float,
|
||||
builtins::builtin_type(Symbol::NUM_FLOAT, vec![]),
|
||||
builtins::num_float(),
|
||||
expected,
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue