[Mono-bugs] [Bug 507093] New: mdb does not use polymorphism in invocation expression

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue May 26 09:04:05 EDT 2009


           Summary: mdb does not use polymorphism in invocation expression
    Classification: Mono
           Product: Mono: Debugger
           Version: 2.4.x
          Platform: x86-64
        OS/Version: UNIX Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: cli
        AssignedTo: martin at novell.com
        ReportedBy: marco.giusti at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=294445)
 --> (http://bugzilla.novell.com/attachment.cgi?id=294445)
Simple file used for testing

Description of Problem:

using "invocation expression" capability as described in
http://www.mono-project.com/Guide:Debugger is not possible to pass a derived
class to methods. here the steps to reproduce the problem:

  nohero at murdoc:tmp$ mdb test_mdb.exe
  Mono Debugger
  (mdb) r
  Starting program: test_mdb.exe 
  Thread @1 stopped at #0: 0x40890384 in Program.Main()+0x4 at /home/nohero
     6         print("hello, world");
  (mdb) p Program.print("ciao, mondo")
  ERROR: The best overload of method `Program.print' has some invalid
  Argument 0: Cannot implicitly convert `string' to `object'

using manual casting pretty works for value type:

  (mdb) p Program.print((object) "ciao, mondo")
  ciao, mondo
  ERROR: Method `Program.print ()' doesn't return a value.

the same is not true for reference type:

  (mdb) p Program.printProperties((object) obj)
  ERROR: Cannot box object `...': not a value-type

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list