[Mono-bugs] [Bug 659136] New: compilation should fail when I access non-shared member from shared member.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 13 11:41:18 EST 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=659136#c0


           Summary: compilation should fail when I access non-shared
                    member from shared member.
    Classification: Mono
           Product: Mono: Compilers
           Version: 2.8.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Basic
        AssignedTo: rkvinge at novell.com
        ReportedBy: himajin100000 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0b8pre) Gecko/20101212
Firefox/4.0b8pre Firefox/4.0b8pre

compilation should fail when I access non-shared member from shared member.
see "steps to reproduce" section.

Reproducible: Always

Steps to Reproduce:
1. try to compile the following code.

Option Explicit On
Option Strict On

Class X
        Public Shared Sub Main()
                F()
        End Sub
        Public Sub F()
        End Sub
End Class

/* http://ideone.com/qhtv5 */
Actual Results:  
Compiled Successfully
When I ran the executable,System.InvalidProgramException was thrown

Expected Results:  
Compilation Should fail.
MS Implementation reported BC30002 to me.

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