Calling super from CLS override


#1

Hi,

Was wondering if this is currently possible as I’m currently getting:

System.ArgumentException : wrong number or type of arguments for
Render' at _stub_$19##19(Closure , CallSite , RubyMethodScope , Object , Proc , Object ) C:\Dev\ironruby\trunk\src\Microsoft.Scripting.Core\Actions\MatchCaller.Generated.cs(40,0): at System.Scripting.Actions.MatchCaller.Call4[T0,T1,T2,T3,TRet](Func6
target, CallSite site, Object[] args)
C:\Dev\ironruby\trunk\src\Microsoft.Scripting.Core\Actions\CallSite.cs(275,0):
at System.Scripting.Actions.CallSite`1.UpdateAndExecute(Object[] args)
C:\Dev\ironruby\trunk\src\Microsoft.Scripting.Core\Actions\UpdateDelegates.Generated.cs(52,0):
at
System.Scripting.Actions.UpdateDelegates.Update4[T,T0,T1,T2,T3,TRet](CallSite
site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)

// c#

public abstract class ViewBase {
public virtual void Render(TextWriter textWriter)
{
}
}

// rb

class MyView < ViewBase
def Render(text_writer)
super
end
end

Cheers,

Andrew.


#2

I’m fairly sure this was working at some point – my bad for not adding
an appropriate test :(.


#3

I’ll try to get the barebones structure in tomorrow so we can get tests
in.

JD


From: removed_email_address@domain.invalid
[removed_email_address@domain.invalid] On Behalf Of Curt H.
[removed_email_address@domain.invalid]
Sent: Wednesday, October 29, 2008 9:43 PM
To: removed_email_address@domain.invalid
Subject: Re: [Ironruby-core] Calling super from CLS override

I’m fairly sure this was working at some point – my bad for not adding
an appropriate test :(.