[Mono-list] C# question (Alert: Gonzalo)

Tim Coleman tim@timcoleman.com
Mon, 28 Oct 2002 19:00:56 -0500


This looks similar to the issue I was having compiling 
Mono.Data.TdsClient on Linux with mcs.

Gonzalo was looking for a test case.  I'm not sure if this
meets his requirements or not.

On Mon, Oct 28, 2002 at 07:31:27PM +0100, Varga Zoltan wrote:
> 
>                       Hi,
> 
> I stumbled across the following code in a C# source file:
> 
> public enum Modifiers
> {
> 	Public			= 0x0001,
> }
> 
> class Foo {
> 
>  internal Modifiers Modifiers {
> 	 get {
> 		 return Modifiers.Public;
> 	 }
>  }
> 
>  private class Bar {
> 	 void bar2() {
> 		 Console.WriteLine (Modifiers.Public);
> 	 }
>  }
> }
> 
> It compiles fine with MS csc, but not with msc. Is the above
> code invalid or should I file a bug report?
> 
>                  thanks
> 
>                         Zoltan
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list

-- 
Tim Coleman <tim@timcoleman.com>                       [43.43 N 80.45 W]
BMath, Honours Combinatorics and Optimization, University of Waterloo
Software Developer, Global Services, Open Text Corporation
"Under capitalism, man exploits man.  Under communism, it's just the
 opposite." -- J.K. Galbraith