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>2010-11-01 15:41:48 +0300
committerMarek Safar <marek.safar@gmail.com>2010-11-01 16:26:33 +0300
commit7cec033f70c4f0aa12df6fbcdae9fdcefcaf8857 (patch)
tree50a0b33310d3e85a900a6f8d055bc0a68de5243b /mcs/tests/gtest-546.cs
parent66d8595f37f6cbb16c34a0f2455e0c9caaab85ef (diff)
Check for unfixed type arguments before calling overload resolution for inferred return type
Diffstat (limited to 'mcs/tests/gtest-546.cs')
-rw-r--r--mcs/tests/gtest-546.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/mcs/tests/gtest-546.cs b/mcs/tests/gtest-546.cs
new file mode 100644
index 00000000000..7e31531c8c8
--- /dev/null
+++ b/mcs/tests/gtest-546.cs
@@ -0,0 +1,26 @@
+using System;
+
+class Factory
+{
+ public class S<G1, G2>
+ {
+ }
+
+ public static S<F1, F2> Create<F1, F2> (F1 f1, F2 f2)
+ {
+ return null;
+ }
+}
+
+class A
+{
+ static TR Test<T1, T2, TR>(T1 t1, T2 t2, Func<T1, T2, TR> f)
+ {
+ return f (t1, t2);
+ }
+
+ static void Main ()
+ {
+ var r = Test ("a", "b", Factory.Create);
+ }
+} \ No newline at end of file