[Ironruby-core] Complex Inheritance Issue

Andrew Peters andrew at mindscape.co.nz
Sun Nov 2 22:55:28 EST 2008


I have this test case which throws an error:

class Templates_IronRuby_CustomBaseClass_haml<NHaml::Tests::CustomTemplate4[System::Collections::Generic::List[System::Collections::Generic::List[System::Int32]]]

System.InvalidOperationException : superclass mismatch for class
Templates_IronRuby_CustomBaseClass_haml
	C:\Dev\ironruby\trunk\src\ironruby\Runtime\RubyUtils.cs(416,0): at
IronRuby.Runtime.RubyUtils.DefineClass(Scope autoloadScope, RubyModule
owner, String name, Object superClassObject)
	C:\Dev\ironruby\trunk\src\ironruby\Runtime\RubyOps.cs(533,0): at
IronRuby.Runtime.RubyOps.DefineNestedClass(RubyScope scope, String
name, Object superClassObject)
	at #top-level-method#$25##25(Closure , Scope , LanguageContext )
	C:\Dev\ironruby\trunk\src\Microsoft.Scripting\Runtime\ScriptCode.cs(89,0):
at Microsoft.Scripting.ScriptCode.InvokeTarget(LambdaExpression code,
Scope scope)
	C:\Dev\ironruby\trunk\src\Microsoft.Scripting\SourceUnit.cs(227,0):
at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink
errorSink)
	C:\Dev\ironruby\trunk\src\Microsoft.Scripting\Hosting\ScriptSource.cs(127,0):
at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)
	C:\Dev\ironruby\trunk\src\Microsoft.Scripting\Hosting\ScriptEngine.cs(110,0):
at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String expression)

Bug?

Cheers,

Andrew.


More information about the Ironruby-core mailing list