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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2008-11-25 18:01:35 +0300
committerMarek Safar <marek.safar@gmail.com>2008-11-25 18:01:35 +0300
commit0a75e81d90459cccaa92da18c874e93c4b7ec05e (patch)
tree818eed39ee6a0a7bf318ec227a5d7336fa3ce660 /mcs/tests/gtest-161.cs
parentdef6935cac4f1e9c0a85e94645c5f4ded7048ea7 (diff)
New tests.
svn path=/trunk/mcs/; revision=119955
Diffstat (limited to 'mcs/tests/gtest-161.cs')
-rw-r--r--mcs/tests/gtest-161.cs25
1 files changed, 15 insertions, 10 deletions
diff --git a/mcs/tests/gtest-161.cs b/mcs/tests/gtest-161.cs
index c538f6bd93d..6f119fa124f 100644
--- a/mcs/tests/gtest-161.cs
+++ b/mcs/tests/gtest-161.cs
@@ -1,13 +1,18 @@
// Compiler options: -r:gtest-161-lib.dll
-public class App {
- public static void Main() {
- string s = apply<int, string>(3,
- delegate (int x) {
- return x.ToString(); });
- int y = apply<int, int>(3, FP.identity<int>);
- }
- static U apply<T, U>(T obj, FP.Mapping<T, U> f) {
- return f(obj);
- }
+public class App
+{
+ public static void Main ()
+ {
+ string s = apply<int, string> (3, delegate (int x) {
+ return x.ToString ();
+ });
+
+ int y = apply<int, int> (3, FP.identity<int>);
+ }
+
+ static U apply<T, U> (T obj, FP.Mapping<T, U> f)
+ {
+ return f (obj);
+ }
}