Ranged number abilities are derived and compiled correctly

Closes #5089
This commit is contained in:
Ayaz Hafiz 2023-03-22 09:42:06 -05:00
parent 63ef4a486f
commit 240c1f35d6
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 52 additions and 2 deletions

View file

@ -96,7 +96,9 @@ impl FlatDecodable {
// by the backend, and the backend treats opaques like structural aliases.
_ => Self::from_var(subs, real_var),
},
Content::RangedNumber(_) => Err(Underivable),
Content::RangedNumber(range) => {
Self::from_var(subs, range.default_compilation_variable())
}
//
Content::RecursionVar { .. } => Err(Underivable),
Content::Error => Err(Underivable),

View file

@ -131,7 +131,9 @@ impl FlatEncodable {
// by the backend, and the backend treats opaques like structural aliases.
_ => Self::from_var(subs, real_var),
},
Content::RangedNumber(_) => Err(Underivable),
Content::RangedNumber(range) => {
Self::from_var(subs, range.default_compilation_variable())
}
//
Content::RecursionVar { .. } => Err(Underivable),
Content::Error => Err(Underivable),