
25 Apr
2025
25 Apr
'25
4:28 p.m.
Issue #21285 has been reported by andrykonchin (Andrew Konchin). ---------------------------------------- Bug #21285: Range#overlap? returns false for (nil..nil) https://bugs.ruby-lang.org/issues/21285 * Author: andrykonchin (Andrew Konchin) * Status: Open * ruby -v: 3.4.3 * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- I've notices the following edge case: ```ruby (..1).overlap?(nil..nil) => false ``` But I expect `true` -- https://bugs.ruby-lang.org/