diff options
author | Martin Baulig <martin@novell.com> | 2005-05-20 01:25:22 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2005-05-20 01:25:22 +0400 |
commit | 9a2adbbd3ea5f9c43a6ae7347c01516f50233c28 (patch) | |
tree | d8914209a7afea5f13ec3751562206ea3018909b /mcs/tests/test-336.cs | |
parent | a9f8d7286bba662112437c97d4fc82be4b8fa46a (diff) |
2005-05-20 Martin Baulig <martin@ximian.com>
* test-336.cs: Replaced with a working test.
svn path=/trunk/mcs/; revision=44766
Diffstat (limited to 'mcs/tests/test-336.cs')
-rw-r--r-- | mcs/tests/test-336.cs | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/mcs/tests/test-336.cs b/mcs/tests/test-336.cs index 60232fc0c81..a180d5f011d 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 () + { } + static void Main () + { + X x = new X (Test); + } +} |