[Mono-bugs] [Bug 422951] New: Error in assigning to ref parameter

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Sep 4 02:57:39 EDT 2008


           Summary: Error in assigning to ref parameter
           Product: Mono: Compilers
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: miguel at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

The following code produces invalid IL code:

class X {
        static void Main ()
                object x = null;
                R (ref x);


        static void R (ref object o)
                o = new Hashtable () {{1,2}};

Running this program produces:

Unhandled Exception: System.InvalidProgramException: Invalid IL code in X:R
(object&): IL_001a: ret       

  at X.Main () [0x00000]

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

More information about the mono-bugs mailing list