dbremner / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
0 stars 0 forks source link

Can't subclass builtin class that has been reopened #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Testcase:

  class Numeric
  end

  class MyNum < Numeric
  end

This causes an assertion error to be thrown from PERWAPI, because when the
following code is run, superClassConstructor0 is null.

  if (interopClass.GetMethod(".ctor", new Type[0]) == null)
  {
      CodeGenContext class_constructor0 =
newContext.CreateConstructor(interopClass);
      class_constructor0.ldarg(0);
      class_constructor0.ldsfld(singletonField);     
      class_constructor0.call(superClassConstructor0);        
      class_constructor0.ret();
      class_constructor0.Close();
  }

Original issue reported on code.google.com by sason...@gmail.com on 11 Sep 2007 at 10:19

GoogleCodeExporter commented 8 years ago
Fixed in revision 98

Original comment by DrWayneK...@gmail.com on 20 Sep 2007 at 6:29