[Mono-bugs] [Bug 372375] New: GMCS doesn't box nullable types
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Mar 19 10:44:28 EDT 2008
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: mono-bugs at lists.ximian.com
ReportedBy: mprobst at novell.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list