projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c03f89
)
2008-03-14 Marek Safar <marek.safar@gmail.com>
author
Marek Safar
<marek.safar@gmail.com>
Fri, 14 Mar 2008 16:28:05 +0000
(16:28 -0000)
committer
Marek Safar
<marek.safar@gmail.com>
Fri, 14 Mar 2008 16:28:05 +0000
(16:28 -0000)
A test for bug #370577
svn path=/trunk/mcs/; revision=98285
mcs/tests/ltest-13.cs
[new file with mode: 0644]
patch
|
blob
diff --git a/mcs/tests/ltest-13.cs
b/mcs/tests/ltest-13.cs
new file mode 100644
(file)
index 0000000..
9188975
--- /dev/null
+++ b/
mcs/tests/ltest-13.cs
@@ -0,0
+1,22
@@
+using System;
+
+class Program
+{
+
+ static void Foo (Action<string> a)
+ {
+ a ("action");
+ }
+
+ static T Foo<T> (Func<string, T> f)
+ {
+ return f ("function");
+ }
+
+ static void Main ()
+ {
+ var str = Foo (s => s);
+ Console.WriteLine (str);
+ Foo (s => Console.WriteLine (s));
+ }
+}