Misleading error message calling private method


#1

Hello,

IronRuby throws misleading error message, when I call private method of
the C# class.


C#
public class Cls {
private void private_method() {}
}

Ruby:
Cls.new.private_method

Output:
#<ArgumentError: wrong number or type of arguments for
`private_method’>


  • Alex.

#2

Could you file a bug @ http://rubyforge.org/projects/ironruby/?

Thanks,
Tomas


#3

Hi, Tomas

I submitted it as bug # 23508, thought did no assignments.

  • Alex

#4

That’s the right way :slight_smile:

Thanks,
Tomas