https://bugzilla.novell.com/show_bug.cgi?id=372375
Summary: GMCS doesn't box nullable types
Product: Mono: Compilers
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: Development
class Test {
static object Foo (int? i) {
return (object)i;
}
}
The method Foo should box the Nullable<int> object, but instead the following
code is generated:
IL_0000: ldarg.0
IL_0001: stloc.0
IL_0002: ldloca.s 0
IL_0004: call instance !0 valuetype
[mscorlib]System.Nullable`1<int32>::get_Value()
IL_0009: box [mscorlib]System.Int32
IL_000e: ret
--
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