[ruby-dev:50460] [Ruby trunk Bug#14427] Backport r61469
From:
zn@...
Date:
2018-01-31 14:56:05 UTC
List:
ruby-dev #50460
Issue #14427 has been reported by znz (Kazuhiro NISHIYAMA).
----------------------------------------
Bug #14427: Backport r61469
https://bugs.ruby-lang.org/issues/14427
* Author: znz (Kazuhiro NISHIYAMA)
* Status: Closed
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: 2.5.0
* Backport: 2.3: DONTNEED, 2.4: DONTNEED, 2.5: REQUIRED
----------------------------------------
Please backport r61469 to ruby_2_5 branch.
2.5.0:
```
% rbenv exec irb -r irb/completion --simple-prompt
>> {foo: 1}.fetch(:fooo)
Traceback (most recent call last):
3: from .../bin/irb:11:in `<main>'
2: from (irb):1
1: from (irb):1:in `fetch'
KeyError (key not found: :fooo
Did you mean? :foo)
```
trunk:
```
>> {foo: 1}.fetch(:fooo)
Traceback (most recent call last):
3: from .../bin/irb:11:in `<main>'
2: from (irb):1
1: from (irb):1:in `fetch'
KeyError (key not found: :fooo)
Did you mean? :foo
```
--
https://bugs.ruby-lang.org/