+ // LAMESPEC: Standard does not specify that all methodgroup arguments
+ // has to be fixed but it does not specify how to do recursive type inference
+ // either. We choose the simple option and infer return type only
+ // if all delegate generic arguments are fixed.
+ TypeSpec[] param_types = new TypeSpec [invoke.Parameters.Count];
+ for (int i = 0; i < param_types.Length; ++i) {
+ var inflated = InflateGenericArgument (invoke.Parameters.Types[i]);
+ if (inflated == null)
+ return 0;
+
+ param_types[i] = inflated;
+ }
+