Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348539

Summary: valid proc and lambda arguments flagged as syntax error
Product: [Technology] DLTK Reporter: eclbugs37
Component: RubyAssignee: 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:

Description eclbugs37 CLA 2011-06-07 07:13:42 EDT
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.
Comment 1 eclbugs37 CLA 2011-06-07 07:30:06 EDT
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
Comment 2 Dawid Pakula CLA 2020-01-03 07:58:15 EST
Ruby support has been removed.