[Mono-bugs] [Bug 352287] New: gmcs doesn't emit CS0188 errors

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 8 08:50:01 EST 2008


           Summary: gmcs doesn't emit CS0188 errors
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: msafar at novell.com
        ReportedBy: jbevain at novell.com
         QAContact: mono-bugs at ximian.com
          Found By: ---


using System;

struct Foo {

        int bar;
        int baz;

        public int Bar {
                get { return bar; }

        public Foo (int baz)
                this.baz = baz;
                bar = Bar - 1;

repro.cs(6,13): warning CS0414: The private field `Foo.baz' is assigned but its
value is never used
Compilation succeeded - 1 warning(s)

error CS0188: The 'this' object cannot be used before all of its fields are
assigned to.

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