[wasm] Fix WASM CI script. (#6741)
[mono-project.git] / mcs / errors / cs1618-2.cs
blob545e0fcb363dbeae702f19ee28d40f9d6f21d57a
1 // CS1618: 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?");