Bug 12856 - Wrong return type displayed for closed generic types
Summary: Wrong return type displayed for closed generic types
Status: RESOLVED FIXED
Alias: None
Product: Runtime
Classification: Mono
Component: Reflection ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Rodrigo Kumpera
URL:
Depends on:
Blocks:
 
Reported: 2013-06-24 16:17 UTC by Marek Safar
Modified: 2013-06-25 14:28 UTC (History)
1 user (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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 on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Marek Safar 2013-06-24 16:17:31 UTC
using System;
using System.Reflection;

	public class X
	{
		public static implicit operator int? (X x)
		{
			return null;
		}

		public static implicit operator long? (X x)
		{
			return null;
		}
	}

	class Program
	{
		static void Main (string[] args)
		{
			var a = typeof (X).GetMembers (BindingFlags.Static | BindingFlags.Public);
			foreach (var x in a)
				Console.WriteLine (x);

			return;
		}
	}


.NET

System.Nullable`1[System.Int32] op_Implicit(X)
System.Nullable`1[System.Int64] op_Implicit(X)

Mono

Nullable`1 op_Implicit(X)
Nullable`1 op_Implicit(X)
Comment 1 Rodrigo Kumpera 2013-06-25 14:28:28 UTC
Fixed.