2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / errors / cs1618-2.cs
blob955e1548bfd0c58a87de9cf48c706bd3b0ef09c2
1 // cs1618-2.cs: Cannot create delegate with `System.Diagnostics.Debug.Assert(bool)' because it has a Conditional attribute
2 // Line: 8
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);
12 namespace Foo {
13 using System;
14 partial class Bar
16 public Bar () {}
17 static void Main ()
19 if (new Bar ().assert == null)
20 throw new Exception ("Didn't resolve Debug.Assert?");