Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cs1618.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 79141dc3fa45f365828f94bb0859b8b455055974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// cs1618.cs: Cannot create delegate with 'TestClass.Show(int)' because it has a Conditional attribute
// Line: 13

class TestClass
{
        delegate void test_delegate (int arg);

        [System.Diagnostics.Conditional("DEBUG")]
        public void Show (int arg) {}
            
        public TestClass ()
        {
            test_delegate D = new test_delegate (Show);
        }
}