| Summary: | valid proc and lambda arguments flagged as syntax error | ||
|---|---|---|---|
| Product: | [Technology] DLTK | Reporter: | eclbugs37 |
| Component: | Ruby | Assignee: | dltk.ruby-inbox <dltk.ruby-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 2.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
Sorry, the probably more useful version is probably this: Dynamic Languages Toolkit - Ruby Development Tools 2.0.0.v20100505-1154-7G--E_EkMU3NHhvAUo0G org.eclipse.dltk.ruby.feature.group Ruby support has been removed. |
Build Identifier: 20110301-1815 The syntax checker does not properly handle procs or lambdas being passed to procs or lambdas. Specifically, it not appear to recognize the '&b' construct in the proc/lambda parameters. org.eclipse.dltk.ruby version used is 1.0.0v20090615-1430 . Reproducible: Always Steps to Reproduce: The following are all valid ruby but are flagged with a syntax error by eclipse: a = lambda { |a, &b| puts 'foo' } a = lambda { |*a, &b| puts 'foo' } a = lambda { |x, *a, &b| puts 'foo' } Replace 'lambda' by 'proc' or 'Proc.new' for more examples.