[Mono-bugs] [Bug 650838] New: CS0172 in cases where MS C# will just widen
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Nov 2 17:40:03 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=650838
https://bugzilla.novell.com/show_bug.cgi?id=650838#c0
Summary: CS0172 in cases where MS C# will just widen
Classification: Mono
Product: Mono: Compilers
Version: 2.8.x
Platform: x86-64
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: xocotl at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+
(KHTML, like Gecko) Version/5.0 Safari/531.2+ Ubuntu/10.04 LTS ()
Epiphany/2.30.2
Say I have int a = b ? c : 0;. If c is ushort, I will get CS0172 in Mono's C#
compiler. This compiles fine under Windows. Similarly, in an expression I have
(double)(d.Property2 == 0 ? 14 : d.Property2), where d.Property2 is short. This
is something the compiler should be able to figure out.
Reproducible: Always
Steps to Reproduce:
1.
2.
3.
--
Configure bugmail: https://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