[ruby-core:121731] [Ruby Bug#21285] Range#overlap? returns false for (nil..nil)

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/

Issue #21285 has been updated by mame (Yusuke Endoh). Status changed from Open to Closed I believe it is already fixed. ---------------------------------------- Bug #21285: Range#overlap? returns false for (nil..nil) https://bugs.ruby-lang.org/issues/21285#change-112787 * Author: andrykonchin (Andrew Konchin) * Status: Closed * 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/

Issue #21285 has been updated by andrykonchin (Andrew Konchin). Yeah, indeed. I was fixed in https://github.com/ruby/ruby/pull/12937. Thank you. ---------------------------------------- Bug #21285: Range#overlap? returns false for (nil..nil) https://bugs.ruby-lang.org/issues/21285#change-112790 * Author: andrykonchin (Andrew Konchin) * Status: Closed * 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/
participants (2)
-
andrykonchin (Andrew Konchin)
-
mame (Yusuke Endoh)