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>2009-11-13 00:44:37 +0300
committerMarek Safar <marek.safar@gmail.com>2009-11-13 00:44:37 +0300
commit66fd691d515c37f064ff90f45647c3ab4dca75a1 (patch)
treefe91e2ef9700863590c6df26f1fa4087b3822ff8 /mcs/tests/dtest-010.cs
parentf7d116532a9f228689ff8ac336c4b8e86dfa7c62 (diff)
More tests.
svn path=/trunk/mcs/; revision=146064
Diffstat (limited to 'mcs/tests/dtest-010.cs')
-rw-r--r--mcs/tests/dtest-010.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/mcs/tests/dtest-010.cs b/mcs/tests/dtest-010.cs
new file mode 100644
index 00000000000..c9ca7890112
--- /dev/null
+++ b/mcs/tests/dtest-010.cs
@@ -0,0 +1,30 @@
+class A
+{
+ public static T Test<T> (T a, T b)
+ {
+ return b;
+ }
+}
+
+class C
+{
+ int TestCall ()
+ {
+ return 1;
+ }
+
+ public static int Main ()
+ {
+ dynamic d = 0;
+ object o = new C ();
+
+ if (A.Test<dynamic> (d, o).TestCall () != 1)
+ return 1;
+
+ // FIXME: Very tricky, I not sure what to do for now
+ //if (A.Test (d, o).TestCall () != 1)
+ // return 1;
+
+ return 0;
+ }
+}