[mcs] Type arguments resolve failure needs to be reported after probing mode
[mono.git] / mcs / mcs / generic.cs
index e14578dfe39ac23d37b4d32d38673c55ec9aaa5f..e3bb7b0502b3d55047a30dc25b5928acd8d6b9a0 100644 (file)
@@ -2146,7 +2146,7 @@ namespace Mono.CSharp {
                public virtual bool Resolve (IMemberContext ec)
                {
                        if (atypes != null)
-                           return atypes.Length != 0;
+                           return true;
 
                        int count = args.Count;
                        bool ok = true;
@@ -2177,7 +2177,7 @@ namespace Mono.CSharp {
                        }
 
                        if (!ok)
-                               atypes = TypeSpec.EmptyTypes;
+                               atypes = null;
 
                        return ok;
                }