Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Oct 30, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

nobu and others added 7 commits October 30, 2025 21:47
Followup to ruby/prism#2213

Before:
```sh
$ ruby -ve "puts 42.~@"
ruby 3.4.6 (2025-09-16 revision ruby/prism@dbd83256b1) +PRISM [x86_64-linux]
-e:1:in '<main>': undefined method '~@' for an instance of Integer (NoMethodError)
Did you mean?  ~
```

After (matches parse.y):
```sh
$ ./miniruby -ve "puts 42.~@"
ruby 3.5.0dev (2025-10-16T03:40:45Z master ruby/prism@1d95d75c3f) +PRISM [x86_64-linux]
-43
```

ruby/prism@a755bf228f
In the case of attribute writes, there are use cases where you want
to know the location of the = sign. (Internally we actually need
this for translation to the writequark AST.)

ruby/prism@bfc798a7ec
It is already declared as:
> This behavior is slated to be removed in Ruby 4.0
Right now we have a subtle type system bug around `types::Class`. Until
that is resolved, stop marking `Kernel#class` as returning
`types::Class`, which fixes Rubocop.

Re: Shopify#850
@pull pull bot locked and limited conversation to collaborators Oct 30, 2025
@pull pull bot added the ⤵️ pull label Oct 30, 2025
@pull pull bot merged commit 9b18946 into turkdevops:master Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants