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: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to