Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 16753 on
GitHub or Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
The following code compiles fine with mcs, but on the other hand is rejected by
csc with error CS0075
public class EmptyClass<T>
public static implicit operator EmptyClass<T> (int i)
return new EmptyClass<T> ();
public static class Program
static void Baz(EmptyClass<int?> arg)
public static void Main ()
Microsoft (R) Visual C# Compiler version 4.0.30319.33440
for Microsoft (R) .NET Framework 4.5
Copyright (C) Microsoft Corporation. All rights reserved.
ideone_bBybkB.cs(21,9): error CS0075: To cast a negative value, you must enclose the value in parentheses
ideone_bBybkB.cs(21,10): error CS0118: 'Application.EmptyClass<int?>' is a 'type' but is used like a 'variable'