diff options
author | Marek Safar <marek.safar@gmail.com> | 2009-11-13 00:44:37 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2009-11-13 00:44:37 +0300 |
commit | 66fd691d515c37f064ff90f45647c3ab4dca75a1 (patch) | |
tree | fe91e2ef9700863590c6df26f1fa4087b3822ff8 /mcs/tests/dtest-010.cs | |
parent | f7d116532a9f228689ff8ac336c4b8e86dfa7c62 (diff) |
More tests.
svn path=/trunk/mcs/; revision=146064
Diffstat (limited to 'mcs/tests/dtest-010.cs')
-rw-r--r-- | mcs/tests/dtest-010.cs | 30 |
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; + } +} |