[Mono-bugs] [Bug 316137] mcs produces CS0219 warning where csc does not

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue May 6 06:52:24 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=316137

User harinath at hurrynot.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=316137#c2


Raja Harinath <harinath at hurrynot.org> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |harinath at hurrynot.org




--- Comment #2 from Raja Harinath <harinath at hurrynot.org>  2008-05-06 04:52:23 MST ---
The likely differentiator is that they don't warn when non-trivial constructors
are used.  Reference types, by definition, have non-trivial constructors. 
Value types have trivial default constructors.

So, we need to check what csc does with

  object o = null; // should warn

  MyStruct s = new MyStruct(a, b, c); // shouldn't warn

  MyStruct s; s.a = ...; s.b = ...; s.c = ...; // pedantically, should warn


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list