mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
[WIP] Merge local changes with new branch
This commit is contained in:
parent
1ab7dc54ad
commit
18d0141942
3 changed files with 9 additions and 73 deletions
|
@ -154,20 +154,20 @@ pub fn constrain_pattern(
|
|||
));
|
||||
}
|
||||
|
||||
IntLiteral(var, _) => {
|
||||
IntLiteral(precision_var, _) => {
|
||||
state.constraints.push(Constraint::Pattern(
|
||||
region,
|
||||
PatternCategory::Int,
|
||||
builtins::num_int(Type::Variable(*var)),
|
||||
builtins::num_integer(Type::Variable(*precision_var)),
|
||||
expected,
|
||||
));
|
||||
}
|
||||
|
||||
FloatLiteral(var, _) => {
|
||||
FloatLiteral(precision_var, _) => {
|
||||
state.constraints.push(Constraint::Pattern(
|
||||
region,
|
||||
PatternCategory::Float,
|
||||
builtins::num_float(Type::Variable(*var)),
|
||||
builtins::num_floatingpoint(Type::Variable(*precision_var)),
|
||||
expected,
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue