diff options
author | Martin Baulig <martin@novell.com> | 2005-09-28 22:55:39 +0400 |
---|---|---|
committer | Martin Baulig <martin@novell.com> | 2005-09-28 22:55:39 +0400 |
commit | 8b618e7ea24aa7d2bdb0203cd86133f2a4851ff0 (patch) | |
tree | ff686904528abc79f0f37f42825b1fc31b20becf /mcs/tests/gtest-206.cs | |
parent | 280e5f8d48e702718caaf4347c9ae0a07526306f (diff) |
2005-09-28 Martin Baulig <martin@ximian.com>
* gtest-206.cs: New test for #76262.
svn path=/trunk/mcs/; revision=50964
Diffstat (limited to 'mcs/tests/gtest-206.cs')
-rw-r--r-- | mcs/tests/gtest-206.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mcs/tests/gtest-206.cs b/mcs/tests/gtest-206.cs new file mode 100644 index 00000000000..1adfe90c4e0 --- /dev/null +++ b/mcs/tests/gtest-206.cs @@ -0,0 +1,22 @@ +class Continuation<R,A> +{ + public static Continuation<R,A> CallCC<B> (object f) + { + return null; + } +} + +class Driver +{ + static Continuation<B,A> myTry<A,B> (B f, A x) + { + return Continuation<B,A>.CallCC <object> (null); + } + + public static void Main() + { + myTry <int,int> (3, 7); + } +} + + |