Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs1618.cs
1 // CS1618: Cannot create delegate with `TestClass.Show(int)' because it has a Conditional attribute
2 // Line: 13
3
4 class TestClass
5 {
6         delegate void test_delegate (int arg);
7
8         [System.Diagnostics.Conditional("DEBUG")]
9         public void Show (int arg) {}
10             
11         public TestClass ()
12         {
13             test_delegate D = new test_delegate (Show);
14         }
15 }
16