[Mono-bugs] [Bug 396633] New: incorrect CS0103: gmcs fails to resolve automatic property in partial type defined with different modifiers

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jun 3 04:55:14 EDT 2008


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


           Summary: incorrect CS0103: gmcs fails to resolve automatic
                    property in partial type defined with different
                    modifiers
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: atsushi at ximian.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


The following sample shows that gmcs does not resolve automatic properties in a
partial class:

partial class Test
{
}

abstract partial class Test
{
        public string X { get; set; }
}

--------

$ gmcs ap.cs
ap.cs(7,23): error CS0103: The name `<X>k__BackingField' does not exist in the
c
urrent context
ap.cs(7,23): error CS0103: The name `<X>k__BackingField' does not exist in the
c
urrent context
Compilation failed: 2 error(s), 0 warnings

For the condition of the reproduction, the summary mostly tells - note that
those partial types have different modifiers (one is abstract, while the other
is not).

This blocks DBLinq code to build.


-- 
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