https://bugzilla.novell.com/show_bug.cgi?id=367655


           Summary: Reflection should promote System.Char arguments to
                    System.Double
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


This program prints "42" on .NET whereas Mono 1.9 throws a
System.InvalidCastException.

class Program
{
  public static void DoubleMethod(double d)
  {
    System.Console.WriteLine(d);
  }

  static void Main(string[] args)
  {
    typeof(Program).GetMethod("DoubleMethod").Invoke(null, new object[] {
(char)42 });
  }
}


-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to