mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
also default to i64/f64 for rigid vars
This commit is contained in:
parent
b80865778e
commit
5256b1aa5c
1 changed files with 2 additions and 2 deletions
|
@ -1439,7 +1439,7 @@ fn unwrap_num_tag<'a>(subs: &Subs, var: Variable) -> Result<Layout<'a>, LayoutPr
|
|||
|
||||
Ok(Layout::Builtin(builtin))
|
||||
}
|
||||
Content::FlexVar(_) => {
|
||||
Content::FlexVar(_) | Content::RigidVar(_) => {
|
||||
// default to i64
|
||||
Ok(Layout::Builtin(Builtin::Int64))
|
||||
}
|
||||
|
@ -1464,7 +1464,7 @@ fn unwrap_num_tag<'a>(subs: &Subs, var: Variable) -> Result<Layout<'a>, LayoutPr
|
|||
|
||||
Ok(Layout::Builtin(Builtin::Float64))
|
||||
}
|
||||
Content::FlexVar(_) => {
|
||||
Content::FlexVar(_) | Content::RigidVar(_) => {
|
||||
// default to f64
|
||||
Ok(Layout::Builtin(Builtin::Float64))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue