Merge all static runtime libs into libmono-static.
[mono.git] / mcs / errors / cs1618-2.cs
1 // CS1618: Cannot create delegate with `System.Diagnostics.Debug.Assert(bool)' because it has a Conditional attribute
2 // Line: 8
3
4 namespace Foo {
5         using System.Diagnostics;
6         partial class Bar {
7                 delegate void assert_t (bool condition);
8                 assert_t assert = new assert_t (Debug.Assert);
9         }
10 }
11
12 namespace Foo {
13         using System;
14         partial class Bar
15         {
16                 public Bar () {}
17                 static void Main ()
18                 {
19                         if (new Bar ().assert == null)
20                                 throw new Exception ("Didn't resolve Debug.Assert?");
21                 }
22         }
23 }