Actions
Bug #21285
closedRange#overlap? returns false for (nil..nil)
Description
I've notices the following edge case:
(..1).overlap?(nil..nil)
=> false
But I expect true
Updated by mame (Yusuke Endoh) 2 months ago
- Is duplicate of Bug #21185: Range#overlap? is not commutative with doubly-unbounded range argument. added
Updated by mame (Yusuke Endoh) 2 months ago
- Status changed from Open to Closed
I believe it is already fixed.
Updated by andrykonchin (Andrew Konchin) 2 months ago
Yeah, indeed. I was fixed in https://github.com/ruby/ruby/pull/12937. Thank you.
Actions
Like0
Like0Like0Like0