diff options
| author | yui-knk <spiketeika@gmail.com> | 2025-11-26 14:11:23 +0900 |
|---|---|---|
| committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2025-12-03 09:18:22 +0800 |
| commit | dfdc5d40ec25e42ff63982958c43d425bee909fb (patch) | |
| tree | c20a29fe32cbebb70f886ad9c4dc5db83598b06f /include/ruby/internal/encoding/encoding.h | |
| parent | a211abbcbd87f6d59a99cfcf2cb63a39d61b16ea (diff) | |
Check and raise semantics errors on nested variables captures in patterns
This commit makes these codes to be invalid.
```ruby
case 0
in [a] | 1
end
case 0
in { a: b } | 1
end
case 0
in [{ a: [{ b: [{ c: }] }] }] | 1
end
```
Diffstat (limited to 'include/ruby/internal/encoding/encoding.h')
0 files changed, 0 insertions, 0 deletions
