Re: [Mono-dev] Conditional("DEBUG")

2014-02-28 Thread Greg Young
Thanks not sure how we missed it on the .net side. On Fri, Feb 28, 2014 at 4:42 PM, Greg Young wrote: > hmm I will have to check with msbuild I am pretty sure that code was > compiling in .net > > > On Fri, Feb 28, 2014 at 4:40 PM, Alex Rønne Petersen wrote: > >> This is expected behavior; the

Re: [Mono-dev] Conditional("DEBUG")

2014-02-28 Thread Greg Young
hmm I will have to check with msbuild I am pretty sure that code was compiling in .net On Fri, Feb 28, 2014 at 4:40 PM, Alex Rønne Petersen wrote: > This is expected behavior; the Conditional attribute just says that > calls should be removed if not compiling with the specified > preprocessor sy

Re: [Mono-dev] Conditional("DEBUG")

2014-02-28 Thread Alex Rønne Petersen
This is expected behavior; the Conditional attribute just says that calls should be removed if not compiling with the specified preprocessor symbol. The code is still semantically checked. On Fri, Feb 28, 2014 at 3:37 PM, Greg Young wrote: > [Conditional("DEBUG")] > public void En

[Mono-dev] Conditional("DEBUG")

2014-02-28 Thread Greg Young
[Conditional("DEBUG")] public void Enqueued() { Interlocked.Increment(ref _length); } in Debug build results in: /opt/mono/lib/mono/4.5/Microsoft.CSharp.targets (CoreCompile target) -> Bus/QueueStatsCollector.cs(275,39): error CS0103: The name `_length