* [ruby-core:120613] [Ruby master Bug#21027] `not()` receiver should be `nil`
@ 2025-01-11 20:38 kddnewton (Kevin Newton) via ruby-core
2025-02-14 1:54 ` [ruby-core:121011] " k0kubun (Takashi Kokubun) via ruby-core
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: kddnewton (Kevin Newton) via ruby-core @ 2025-01-11 20:38 UTC (permalink / raw)
To: ruby-core; +Cc: kddnewton (Kevin Newton)
Issue #21027 has been reported by kddnewton (Kevin Newton).
----------------------------------------
Bug #21027: `not()` receiver should be `nil`
https://bugs.ruby-lang.org/issues/21027
* Author: kddnewton (Kevin Newton)
* Status: Open
* Assignee: prism
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
`not` has a 0-argument mode, and the behavior differs from that of parse.y:
```
% RBENV_VERSION=3.4.0 ruby --parser=parse.y -e 'p not()'
true
% RBENV_VERSION=3.4.0 ruby --parser=prism -e 'p not()'
false
```
This is because Prism interprets `not()` as `self.!` where parse.y interprets it as `nil.!`.
--
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:121011] [Ruby master Bug#21027] `not()` receiver should be `nil`
2025-01-11 20:38 [ruby-core:120613] [Ruby master Bug#21027] `not()` receiver should be `nil` kddnewton (Kevin Newton) via ruby-core
@ 2025-02-14 1:54 ` k0kubun (Takashi Kokubun) via ruby-core
2025-04-06 2:32 ` [ruby-core:121539] [Ruby " nagachika (Tomoyuki Chikanaga) via ruby-core
2025-04-06 4:43 ` [ruby-core:121541] " nagachika (Tomoyuki Chikanaga) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: k0kubun (Takashi Kokubun) via ruby-core @ 2025-02-14 1:54 UTC (permalink / raw)
To: ruby-core; +Cc: k0kubun (Takashi Kokubun)
Issue #21027 has been updated by k0kubun (Takashi Kokubun).
Backport changed from 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: REQUIRED to 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: DONE
ruby_3_4 commit:c989d90754edeefa4e692d2cd8c351394cb217e7 merged revision(s) commit:117d6e145a0270ab8fc9134403519ef13b9ebb24.
----------------------------------------
Bug #21027: `not()` receiver should be `nil`
https://bugs.ruby-lang.org/issues/21027#change-111919
* Author: kddnewton (Kevin Newton)
* Status: Closed
* Assignee: prism
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: DONE
----------------------------------------
`not` has a 0-argument mode, and the behavior differs from that of parse.y:
```
% RBENV_VERSION=3.4.0 ruby --parser=parse.y -e 'p not()'
true
% RBENV_VERSION=3.4.0 ruby --parser=prism -e 'p not()'
false
```
This is because Prism interprets `not()` as `self.!` where parse.y interprets it as `nil.!`.
--
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:121539] [Ruby Bug#21027] `not()` receiver should be `nil`
2025-01-11 20:38 [ruby-core:120613] [Ruby master Bug#21027] `not()` receiver should be `nil` kddnewton (Kevin Newton) via ruby-core
2025-02-14 1:54 ` [ruby-core:121011] " k0kubun (Takashi Kokubun) via ruby-core
@ 2025-04-06 2:32 ` nagachika (Tomoyuki Chikanaga) via ruby-core
2025-04-06 4:43 ` [ruby-core:121541] " nagachika (Tomoyuki Chikanaga) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: nagachika (Tomoyuki Chikanaga) via ruby-core @ 2025-04-06 2:32 UTC (permalink / raw)
To: ruby-core; +Cc: nagachika (Tomoyuki Chikanaga)
Issue #21027 has been updated by nagachika (Tomoyuki Chikanaga).
Backport changed from 3.1: DONTNEED, 3.2: DONTNEED, 3.3: REQUIRED, 3.4: DONE to 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONE, 3.4: DONE
ruby_3_3 commit:7c315e23983a35d29108d9ba8c914d6320254d43 merged revision(s) commit:117d6e145a0270ab8fc9134403519ef13b9ebb24.
----------------------------------------
Bug #21027: `not()` receiver should be `nil`
https://bugs.ruby-lang.org/issues/21027#change-112566
* Author: kddnewton (Kevin Newton)
* Status: Closed
* Assignee: prism
* Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONE, 3.4: DONE
----------------------------------------
`not` has a 0-argument mode, and the behavior differs from that of parse.y:
```
% RBENV_VERSION=3.4.0 ruby --parser=parse.y -e 'p not()'
true
% RBENV_VERSION=3.4.0 ruby --parser=prism -e 'p not()'
false
```
This is because Prism interprets `not()` as `self.!` where parse.y interprets it as `nil.!`.
--
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:121541] [Ruby Bug#21027] `not()` receiver should be `nil`
2025-01-11 20:38 [ruby-core:120613] [Ruby master Bug#21027] `not()` receiver should be `nil` kddnewton (Kevin Newton) via ruby-core
2025-02-14 1:54 ` [ruby-core:121011] " k0kubun (Takashi Kokubun) via ruby-core
2025-04-06 2:32 ` [ruby-core:121539] [Ruby " nagachika (Tomoyuki Chikanaga) via ruby-core
@ 2025-04-06 4:43 ` nagachika (Tomoyuki Chikanaga) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: nagachika (Tomoyuki Chikanaga) via ruby-core @ 2025-04-06 4:43 UTC (permalink / raw)
To: ruby-core; +Cc: nagachika (Tomoyuki Chikanaga)
Issue #21027 has been updated by nagachika (Tomoyuki Chikanaga).
Fixed prism tests with updated snapshots at 5640fea8aada2380145375a7f9eac2b979fe1258.
----------------------------------------
Bug #21027: `not()` receiver should be `nil`
https://bugs.ruby-lang.org/issues/21027#change-112568
* Author: kddnewton (Kevin Newton)
* Status: Closed
* Assignee: prism
* Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONE, 3.4: DONE
----------------------------------------
`not` has a 0-argument mode, and the behavior differs from that of parse.y:
```
% RBENV_VERSION=3.4.0 ruby --parser=parse.y -e 'p not()'
true
% RBENV_VERSION=3.4.0 ruby --parser=prism -e 'p not()'
false
```
This is because Prism interprets `not()` as `self.!` where parse.y interprets it as `nil.!`.
--
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-04-06 4:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-11 20:38 [ruby-core:120613] [Ruby master Bug#21027] `not()` receiver should be `nil` kddnewton (Kevin Newton) via ruby-core
2025-02-14 1:54 ` [ruby-core:121011] " k0kubun (Takashi Kokubun) via ruby-core
2025-04-06 2:32 ` [ruby-core:121539] [Ruby " nagachika (Tomoyuki Chikanaga) via ruby-core
2025-04-06 4:43 ` [ruby-core:121541] " nagachika (Tomoyuki Chikanaga) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).