[ruby-core:121733] [Ruby Bug#21285] Range#overlap? returns false for (nil..nil)
From:
"mame (Yusuke Endoh) via ruby-core" <ruby-core@...>
Date:
2025-04-25 19:21:57 UTC
List:
ruby-core #121733
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/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/