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


           Summary: Private shared Main should not be considered as valid
                    entrypoint
           Product: Mono: Compilers
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Basic
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


Apparently, for MS' vbc (both 1.x and 2.x) only public static (Main) methods
are candidates for an entrypoint, while vbnc also allow private static methods.

To reproduce, compile the following code:

Public Class Program
        Private Shared Sub Main
        End Sub
End Class

Expected result:

error BC30737: No accessible 'Main' method with an appropriate signature was
found in 'test'.

Actual result:

Successful compilation


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to