[Mono-bugs] [Bug 504822] New: Private sibling classes can't access eachother

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 18 12:13:47 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=504822


           Summary: Private sibling classes can't access eachother
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: ASSIGNED
          Severity: Normal
          Priority: P5 - None
         Component: Basic
        AssignedTo: rkvinge at novell.com
        ReportedBy: rkvinge at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Repro:

Option Strict On

Public Class Foo
  Private b As Bar

  Private Class Bar
    Public Function Testing() As Integer
          Return 12
    End Function
  End Class

  Private Class Baz
     Private parent As Foo

     Public Function Test(ByVal i As Integer) As Integer
         Return parent.b.Testing() + i
     End Function

  End Class

End Class

PrivateAccess1.vb (16,26) : Error VBNC30390: 'Bar.Testing' is not accessible
because it is 'Public'.

-- 
Configure bugmail: http://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