Bug #5540
Final comma in argument list before block causes syntax error
| Status: | Rejected | Start date: | 11/02/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | core | |||
| Target version: | 1.9.3 | |||
| ruby -v: | ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0] |
Description
The following code parses and runs correctly under 1.9.2-p290 but causes a syntax error under 1.9.3-p0:
def test(foo, &block); end
test 'hello', do; end
History
Updated by jballanc (Joshua Ballanco) 7 months ago
Updated by kosaki (Motohiro KOSAKI) 7 months ago
- Category set to core
- Status changed from Open to Assigned
- Assignee set to matz (Yukihiro Matsumoto)
Updated by matz (Yukihiro Matsumoto) 4 months ago
- Status changed from Assigned to Rejected
Syntax error is intentional. It was caused by a 1.9.2 bug.
Matz.