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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=82507 --- shadow/82507 2007-08-20 17:09:58.000000000 -0400 +++ shadow/82507.tmp.6327 2007-08-20 17:09:58.000000000 -0400 @@ -0,0 +1,41 @@ +Bug#: 82507 +Product: Mono: Compilers +Version: 1.0 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: C# +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Confusing error message with a name conflict + +I have a class which inherits from Gtk.Bin and i have a class called 'Path'. + +public class Path +{ + static string Name = "Bob"; +} + +public class Test : Gtk.Bin +{ + public Test() + { + Console.WriteLine(Path.Name); + } +} + +If i try to compile the above code i get a message saying 'object does not +contain a definition for 'Name'. The reason is that gmcs sees the method +first, notices that the method returns an object which does not have a +property called 'Name' and then bails. + +Resolution: +Maybe i should be warned that there's a conflict between a method and a +class whose static members i'm trying to access. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
