Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

class method call crashes when there's a method with the same name but different number of args

#24

cannot find anything in common to that


class Controller
  def render(filename)
    render(filename, {})

  def render(filename, bindings)
    render(filename, bindings, [])

  def render(filename, bindings, handlers)
    ~html

>> load('issue.re')
=> Controller
>> Controller().render('foo', {}, [])
=> ~html
>> Controller().render('foo', {})
*** ERROR: Shell process terminated! (^G to start new job) ***

=ERROR REPORT==== 28-Feb-2009::18:02:03 ===
                                           ** Generic server <0.56.0> terminating 
                                                                                  ** Last message in was {render,
                                                                                                                                            [{string,<<"foo">>},
                                                 {dict,
                                                                                       {dict,0,16,16,8,80,48,
                                                                                                                                                 {[],[],[],[],[],[],[],[],[],[],[],[],[],
                                                                                   [],[],[]},
                                                                                                                                 {{[],[],[],[],[],[],[],[],[],[],[],[],[],
                                                                     [],[],[]}}}}]}
                                                                                   ** When Server state == {dict,0,16,16,8,80,48,
                                                                                                                                                               {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                                                                                 []},
                                                                                                                                   {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                                                       []}}}
                                                                            ** Reason for termination == 
                                                                                                         ** {function_clause,[{'Controller','__re_method_render',3},
                                              {'Controller',handle_call,3},
                                                                                                {reia_dispatch,funcall,3}]}

class Controller
  def render(filename)
    ~a

  def render(filename, bindings)
    ~html

>> load('issue.re')
=> Controller
>> Controller().render(~a)
=> ~a
>> Controller().render(~a, ~b)
*** ERROR: Shell process terminated! (^G to start new job) ***

=ERROR REPORT==== 28-Feb-2009::18:08:09 ===
                                           ** Generic server <0.56.0> terminating 
                                                                                  ** Last message in was {render,[a,b]}
                                                                                                                       ** When Server state == {dict,0,16,16,8,80,48,
                                                        {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                                                                                                                     []},
                                                                                                                                                                       {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                                                                                           []}}}
                                                                                                                ** Reason for termination == 
  ** {function_clause,[{'Controller','__re_method_render',3},
                                                                                  {'Controller',handle_call,3},
                                                                                                                                    {reia_dispatch,funcall,3}]}

Reported by Philipp Pirozhkov · February 28th, 2009 @ 08:07 AM

State: new
Milestone: none
Assigned to: Tony Arcieri Tony Arcieri

Activity

No comments yet.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.