[Mono-bugs] [Bug 44803][Nor] New - Access of a member whose type is internal from an external assembly should error out.
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Sat, 14 Jun 2003 11:59:38 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by mkestner@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=44803
--- shadow/44803 Sat Jun 14 11:59:37 2003
+++ shadow/44803.tmp.29348 Sat Jun 14 11:59:37 2003
@@ -0,0 +1,31 @@
+Bug#: 44803
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mkestner@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Access of a member whose type is internal from an external assembly should error out.
+
+In the following code:
+
+internal delegate void MyDelegateType ();
+
+public class Foo {
+ public MyDelegateType Bar;
+}
+
+Any reference to Field "Bar" from an external assembly should cause a
+compile warning because the type is less accessible than the variable, and
+not accessible from outside the assembly.
+
+csc errors out on this, while mcs allows it.