Project

General

Profile

Actions

Bug #21285

closed

Range#overlap? returns false for (nil..nil)

Added by andrykonchin (Andrew Konchin) 2 months ago. Updated 2 months ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:121731]

Description

I've notices the following edge case:

(..1).overlap?(nil..nil)
=> false

But I expect true


Related issues 1 (0 open1 closed)

Is duplicate of Ruby - Bug #21185: Range#overlap? is not commutative with doubly-unbounded range argument.ClosedActions
Actions #1

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

Also available in: Atom PDF

Like0
Like0Like0Like0