Bug 12625 - Wrong var type for nullable shift operator
Summary: Wrong var type for nullable shift operator
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: PC Mac OS
: Lowest normal
Target Milestone: master
Assignee: Mike Krüger
Depends on:
Reported: 2013-06-10 17:28 UTC by Marek Safar
Modified: 2015-05-18 03:31 UTC (History)
1 user (show)

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 Developer Community or GitHub 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:

Description Marek Safar 2013-06-10 17:28:52 UTC
class Foo {
	public static void Main ()
		uint? a = 3;
		var res = 1 >> a; // Hover over var, XS shows int which does not really work
Comment 1 Mike Krüger 2013-06-11 03:17:37 UTC
The >> operator isn't specified with uints -> therefore it doesn't work.
Comment 2 Marek Safar 2013-06-11 03:19:20 UTC
Exactly but XS shows it as it works.
Comment 3 Mike Krüger 2015-05-18 03:31:55 UTC
Fixed in roslyn version.