Bug 32130

Summary: Parenthesis around elvis operators do not resolve to nullable
Product: [Mono] Compilers Reporter: Martijn Laarman <Mpdreamz>
Component: C#Assignee: Marek Safar <masafa>
Severity: normal CC: mono-bugs+mono
Priority: ---    
Version: 4.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Tags: Is this bug a regression?: ---
Last known good build:

Description Martijn Laarman 2015-07-20 04:58:42 UTC
The following does not work on the alpha channel in xamarin


It does not detect that whats inside of the parenthesis is actually a Nullable<bool>. It gets picked up as bool. 

If I assign whats inside of the parenthesis to a var the nullable type is however inferred properly.
Comment 1 Marek Safar 2015-07-20 12:43:22 UTC
Fixed in master and Mono 4.2