[Mono-bugs] [Bug 23014] New - mcs can not find nested enums in dll's compiled with csc
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
4 Apr 2002 02:10:59 -0000
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 manyoso@yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=23014
--- shadow/23014 Wed Apr 3 21:10:59 2002
+++ shadow/23014.tmp.14827 Wed Apr 3 21:10:59 2002
@@ -0,0 +1,43 @@
+Bug#: 23014
+Product: Mono/Runtime
+Version: unspecified
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: manyoso@yahoo.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: mcs can not find nested enums in dll's compiled with csc
+
+mcs/mono seem to be having a problem with nested types and/or enums. the problem arises with mcs compiling something that references a csc
+compiled dll. The details:
+first, I compile the following code with 'csc /target:library /out:Bar.dll enum.cs'
+
+using System;
+namespace FooBar {
+ public class Bar{
+ public enum myenum {
+ blah = 0,
+ }
+ }
+}
+
+then I _try_ to compile the following code with 'mcs -r Bar.dll foo.cs'
+
+using FooBar;
+using System;
+public class Foo {
+ public static int Main (string[] args)
+ {
+ int test = Bar.myenum.blah;
+ }
+}
+
+and I get this: ./foo.cs(6) error CS117: `FooBar.Bar' does not contain a definition for `myenum'