diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-03-20 17:25:15 +0100 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2025-03-20 18:18:11 +0100 |
| commit | de097fbe5f3df105bd2a26e72db06b0f5139bc1a (patch) | |
| tree | 3a3fa5499e0ec9e6eba24fb8dfc62127dd373a89 /test/prism/ruby | |
| parent | a51364f54b644ba2d98779f0af8c7203822d9a31 (diff) | |
Trigger `inherited` and `const_set` callbacks after const has been defined
[Misc #21143]
[Bug #21193]
The previous change caused a backward compatibility issue with code
that called `Object.const_source_location` from the `inherited` callback.
To fix this, the order is now:
- Define the constant
- Invoke `inherited`
- Invoke `const_set`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12956
Diffstat (limited to 'test/prism/ruby')
0 files changed, 0 insertions, 0 deletions
