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