berkesokhan / rubydotnetcompiler

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

Ruby class with same name as CLR class can't be subclassed #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Test case:

  class Char
  end
  class MyChar < Char
  end

Stack trace:

  PERWAPI.CILInstructions.MethInst(PERWAPI.MethodOp inst = call, 
PERWAPI.Method m = null)
  Ruby.Compiler.CodeGenContext.call(PERWAPI.Method method = null) Line 112
  Ruby.Compiler.AST.CLASS_OR_MODULE.GenCode0(Ruby.Compiler.CodeGenContext 
context = {Ruby.Compiler.CodeGenContext}) Line 192
  Ruby.Compiler.AST.Node.GenCode(Ruby.Compiler.CodeGenContext context = 
{Ruby.Compiler.CodeGenContext}) Line 50
  Ruby.Compiler.AST.Scope.AddScopeBody(Ruby.Compiler.CodeGenContext 
context = {Ruby.Compiler.CodeGenContext}) Line 285
  Ruby.Compiler.AST.SOURCEFILE.GenerateClassForFile
(Ruby.Compiler.CodeGenContext context = {Ruby.Compiler.CodeGenContext}, 
string file_name = "thread", bool autoLoad = false, 
System.Collections.Generic.List<Ruby.Compiler.AST.SOURCEFILE> files = 
Count = Cannot evaluate expression because the code of the current method 
is optimized.) Line 283

Original issue reported on code.google.com by sason...@gmail.com on 27 Sep 2007 at 4:24

GoogleCodeExporter commented 9 years ago
Fixed by revision 105. References to classes in mscorlib now need to be 
qualified by
System::.

Original comment by meaningi...@gmail.com on 28 Sep 2007 at 5:28

GoogleCodeExporter commented 9 years ago

Original comment by meaningi...@gmail.com on 4 Oct 2007 at 5:20