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

gtest-361.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d6959b6fa82ab87126f6f64aa4e563bb7b8515ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
public class Thing
{
    public delegate void Handler ();
    
    static void Foo ()
    {
    }

    public static int Main ()
    {
        Method (delegate { }, 
            "Hello", "How", "Are", "You"); // compiler explodes
        Method (delegate { });             // compiler explodes

        Method (null, null);               // ok
        Method (null);                     // ok
        Method (Foo, "Hi");               // ok
        return 0;
    }

    public static void Method (Handler handler, params string [] args)
    {
    }
}