[Mono-bugs] [Bug 493523] New: Nullable and user-defined operator
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Apr 9 04:39:14 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=493523
Summary: Nullable and user-defined operator
Classification: Mono
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: msafar at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
This should compile and run without error/exception.
using System;
struct S
{
public static void Main ()
{
S? s = null;
A a = s;
B b = (B) s;
}
}
class A
{
public static implicit operator A (S x)
{
return new B ();
}
}
class B : A
{
}
- Will probably have to create LiftedUserOperator to emit EmitCheck.
- How does it work with ET?
--
Configure bugmail: http://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