X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Ftests%2Ftest-336.cs;h=ed2c6f337f7e3e8c4e9165dfcfeefe58db1a9314;hb=HEAD;hp=60232fc0c81e6eadab6d4691e622bffae61d3c15;hpb=ff228e1c801bda9666b6edab3ee962e05edcf480;p=mono.git diff --git a/mcs/tests/test-336.cs b/mcs/tests/test-336.cs index 60232fc0c81..ed2c6f337f7 100644 --- a/mcs/tests/test-336.cs +++ b/mcs/tests/test-336.cs @@ -1,17 +1,21 @@ using System; -using System.Threading; - -class A { - static void X () { - Console.WriteLine (); - } - static void Main () { - Thread t = new Thread (X); - } -} - +public delegate void Foo (); +public delegate void Bar (int x); +class X +{ + public X (Foo foo) + { } + public X (Bar bar) + { } + static void Test () + { } + public static void Main () + { + X x = new X (Test); + } +}