mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Merge branch 'main' into ayaz/error-on-invalid-generalized-types
Signed-off-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com>
This commit is contained in:
commit
ee3c71dfe6
766 changed files with 20515 additions and 34868 deletions
|
@ -1383,7 +1383,7 @@ impl DerivableVisitor for DeriveEq {
|
|||
#[inline(always)]
|
||||
fn visit_ranged_number(_var: Variable, _range: NumericRange) -> Result<(), NotDerivable> {
|
||||
// Ranged numbers are allowed, because they are always possibly ints - floats can not have
|
||||
// `isEq` derived, but if something were to be a float, we'd see it exactly as a float.
|
||||
// `is_eq` derived, but if something were to be a float, we'd see it exactly as a float.
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue